On Wednesday 12 December 2007, Sumudu Nishantha wrote:
> Hi all,
>
> I want to send the data to kernel space and wait till
> the interrupt finishes.(PCI dma transfer)
>
> I could do it using a shared variable between user and
> kernel spaces. Then polling is done in the user space
> checking the shared variable.
>
> But this is not an effective way.
> I want to use wait/wakeup method for this.
> ( wait in the user space and wake up the user
> space process in the interrupt routine).
> It is possible to sychronize the kernel/user spaces
> in this way?
>
> Can anyone help me with this?
>
> Thanx in advance.
>
> Sumudu

Not sure if completely understood your question but I believe your looking for 
wait queues.  Just check "Linux Device Drivers" 
(http://lwn.net/Kernel/LDD3/), chapter 6 "Advanced Char Driver Operation".

Hope it helps
-- 
Luís Henriques

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to