Kernel module/IPC with userland: create and write to FIFO

2005-06-17 Thread Hannes Mayer
Hi all! 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.

Re: Kernel module/IPC with userland: create and write to FIFO

2005-06-17 Thread Daniel O'Connor
On Fri, 17 Jun 2005 21:36, Hannes Mayer wrote: 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 ? Why don't you create a device node? If you read and write to it, it acts like a FIFO. -- Daniel O'Connor software and

Re: Kernel module/IPC with userland: create and write to FIFO

2005-06-17 Thread Hannes Mayer
G'Day Daniel! On 6/17/05, Daniel O'Connor [EMAIL PROTECTED] wrote: On Fri, 17 Jun 2005 21:36, Hannes Mayer wrote: 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 ? Why don't you create a device node? If you

Re: Kernel module/IPC with userland: create and write to FIFO

2005-06-17 Thread Daniel O'Connor
On Fri, 17 Jun 2005 23:47, Hannes Mayer wrote: If you read and write to it, it acts like a FIFO. Thanks for your reply! :-) Well, the reason why I want to use a true FIFO is, that data is sampled i.e. every second and I want to write it to disk in userspace only every minute or so. So if I