> i have since solved the problem of passing info
> to and from the kernel - I'm using my own ioctls - which
> solves the problem perfeclty. The next problem I hit is
> this:
> I have 2 devices being monitored by the same
> kernel module. When one device is accessed and info is
> passed in, the module notifies a user process which then
> gets the info thru the other deivce, acts on it, and passes
> back the result. My problem is I need the module to block
> (or something) until the info has being passed back before
> returning from the ioctl call made on the first device.
> Any ideas?
>
sounds like a sleep_on or something similiar style mutex in the kernel,
and then wake it up from the other execution context...
Dave.
>>>
--
David Airlie, Software Engineer
Drua Technologies Ltd, Innovation Centre, National Tech Park, Limerick.
t: +353-61-503075 / f: +353-61-338065 / David.Airlie at drua.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!