Re: Kernel module <-> user communication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- "LUSTBADER,STEVE (Non-A-hsgAndover,ex1)"
<steve_lustbader@hsgmed.com> wrote:
> I'm trying to write a kernel network driver but I don't know how to
> access it from a kernel space program.  I'd like to "export" a
> function from the driver that a user space program could call, but
> I'm not sure if that's possible.  For example, I'd like to be able
> to call "do_something(args)" from a user space program that would
> make the driver perform an action (writing to a device register,
> etc).  This is a very specialized device, so the user space program
> could/will be tied very tightly to the driver.
> 

Use ioctls to allow your user-space app to send commands to your
driver.  See: http://www.xml.com/ldd/chapter/book/ch05.html#t1

Harmony,

--Christine


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux