Parallel Port Interrupt Handler in Kernel Module

2004-12-05 Thread Hannes Mayer
Hi all! I'm new to FreeBSD - installed it 3 days ago :-) I'm trying to capture the parallel port interrupt in a kernel module. First I compiled the "skeleton" from: http://freebsd.active-venture.com/arch-handbook/driverbasics-kld.html and it works well. Then I googled on how to setup the interrupt

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

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 ? > &g

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

2005-06-22 Thread Hannes Mayer
Daniel, Alexander, thanks a lot for your suggestions. So far I've made good progress. For the time being I'll buffer in kernel space - I'll look into the pipe stuff later. I just implemented tsleep and wakeup for the read blocking. After major problems when starting, this is going to be fun :-) T