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].

cheers,
- steve

[1] http://www.google.com/search?q=linux+kernel+module_param
[2] http://www.google.com/search?q=linux+kernel+create_proc_entry
[3] http://www.google.com/search?q=linux+kernel+copy_from_use

-- 
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to