LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Getting a kernel process to block....

[ILUG] Getting a kernel process to block....

Dave Airlie david.airlie at drua.ie
Wed Feb 16 12:34:24 GMT 2000


> 	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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell