[Ilugc] kernel to app and app to kernel communication : Preferred method
From: steve@xxxxxxxxxxxx (steve)
Date: Thu, 30 Dec 2010 02:49:11 +0530
Hi,
On 12/29/2010 07:03 PM, Manikandan B wrote:
Hello
I understand that there are many mechanisms for passing data between kernel
code and user space code in Linux. But which is the preferred method in 2.6
?
Depends on what kind of data you would like to pass. If you want to pass a
single value at initialization to your driver use a module parameter[1]. If you
want to pass a tunable parameter, create a /proc entry for your module[2]. If
you want any other dynamic data passing from user space to kernel space (for
example communicating with a user space daemon/tool) use copy_[from|to]_user[3].