Synchronizing user space threads with kernel space in linux
From: Mad_at_Spammers (ih8sp4m_at_yahoo.com)
Date: 04/29/04
- Next message: Michael N. Moran: "Re: Synchronizing user space threads with kernel space in linux"
- Previous message: Damion de Soto: "Re: Lan Networking"
- Next in thread: Michael N. Moran: "Re: Synchronizing user space threads with kernel space in linux"
- Reply: Michael N. Moran: "Re: Synchronizing user space threads with kernel space in linux"
- Reply: Herman Bruyninckx: "Re: Synchronizing user space threads with kernel space in linux"
- Reply: Wolfgang Mües: "Re: Synchronizing user space threads with kernel space in linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Apr 2004 04:54:39 -0700
I want to synchronize a user space thread to an external event that
generates an interrupt. I thought of using the following approach: the
ISR that treats the interrupt does a quick processing (such as data
capture and buffering) and then sends data to the user space thread
through a message queue or signals to the thread waiting on a
semaphore and it gets the buffered data from shared memory or some
similar mechanism. So far I haven't succeded in finding a way to do
it. I've tryed to write a module which uses semaphores (<linux/sem.h>)
but aparently there is no way to use SysV IPC primitives in kernel
modules.
I would appreciate having hints on how to do it or pointers to
documentation and example code if available.
Thank you very much in advance for your help.
Elder.
- Next message: Michael N. Moran: "Re: Synchronizing user space threads with kernel space in linux"
- Previous message: Damion de Soto: "Re: Lan Networking"
- Next in thread: Michael N. Moran: "Re: Synchronizing user space threads with kernel space in linux"
- Reply: Michael N. Moran: "Re: Synchronizing user space threads with kernel space in linux"
- Reply: Herman Bruyninckx: "Re: Synchronizing user space threads with kernel space in linux"
- Reply: Wolfgang Mües: "Re: Synchronizing user space threads with kernel space in linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|