Kernel module/IPC with userland: create and write to FIFO
debiandude at gmail.com
Fri Jun 17 12:06:25 GMT 2005
I've modified a standard driver and now I'd like to create a FIFO in
it to communicate / send data to a userland process.
Opening, reading and writing to a FIFO in userland is easy, but I have
no clue how to do this in kernel space. Googling and looking to the
kernel source didn't help.
The only thing I found is "kern_mkfifo" and int mkfifo(struct thread,
struct mkfifo_args);, but no example on how to use them (if that's the
right approach anyway).
To cut a long story short, how can I open a FIFO in kernel space and
write to it, so I can open and read from it in userspace ?
Thanks in advance for any hints!
More information about the freebsd-stable