I wish to give me some pointers to how to communicate with a kernel module
May I use sockets?
Thanks in advance!
A new Linux distribution: http://l13plus.deuroconsult.ro
Catalin BOIE wrote:
> I wish to give me some pointers to how to communicate with a kernel module
> from userland.
You can use the /proc interface or a device file
(in /dev) depending on what type of comunication you need.
These are the most common ways, not sure if there are more.
> May I use sockets?
I don't think so.
Klaus Naumann (mailto:[email protected])
>I wish to give me some pointers to how to communicate with a kernel module
>May I use sockets?
You can use copy_to/from_user functions present in kernel space, provided
you have valid userland pointers
also put_user/get_user for single datum transfer.