Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locking in kernel across user space calls



Jim Wintermyre writes:
 > 
 > Yes, probably, but that code is currently pretty "gross" too, so not 
 > easily at the moment.  I was sure there was some obvious way to 
 > synchronize among multiple user processes across mulitple driver 
 > calls, that I didn't know about.  Maybe not.  Is there not some 
 > straightforward API to tell the user process (from the userclient) to 
 > just block/sleep until a flag is cleared, or an event is triggered, 

In the kernel, you can use IOLockSleep to put something to
sleeo, and IOLockWakeup to wake it up again.

Drew
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden

References: 
 >Locking in kernel across user space calls (From: Jim Wintermyre <email@hidden>)
 >Re: Locking in kernel across user space calls (From: Jim Wintermyre <email@hidden>)
 >Re: Locking in kernel across user space calls (From: Andrew Gallatin <email@hidden>)
 >Re: Locking in kernel across user space calls (From: Jim Wintermyre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.