]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOLocks.h
xnu-2782.1.97.tar.gz
[apple/xnu.git] / iokit / IOKit / IOLocks.h
index 06ae4aa8d8b1bd40107bb9c95f6bf70285725203..7b42679f113cea1ab03b50883b82cbc394d98648 100644 (file)
@@ -37,6 +37,7 @@
 #endif
 
 #include <sys/appleapiopts.h>
+#include <sys/cdefs.h>
 
 #include <IOKit/system.h>
 
@@ -129,15 +130,15 @@ void      IOLockUnlock( IOLock * lock);
     @abstract Sleep with mutex unlock and relock
 @discussion Prepare to sleep,unlock the mutex, and re-acquire it on wakeup. Results are undefined if the caller has not locked the mutex. This function may block and so should not be called from interrupt level or while a spin lock is held. 
     @param lock Pointer to the locked lock. 
-    @param event The event to sleep on.
+    @param event The event to sleep on. Must be non-NULL.
     @param interType How can the sleep be interrupted.
        @result The wait-result value indicating how the thread was awakened.*/
-int    IOLockSleep( IOLock * lock, void *event, UInt32 interType);
+int    IOLockSleep( IOLock * lock, void *event, UInt32 interType) __DARWIN14_ALIAS(IOLockSleep);
 
 int    IOLockSleepDeadline( IOLock * lock, void *event,
-                               AbsoluteTime deadline, UInt32 interType);
+                                                AbsoluteTime deadline, UInt32 interType) __DARWIN14_ALIAS(IOLockSleepDeadline);
 
-void   IOLockWakeup(IOLock * lock, void *event, bool oneThread);
+void   IOLockWakeup(IOLock * lock, void *event, bool oneThread) __DARWIN14_ALIAS(IOLockWakeup);
 
 #ifdef __APPLE_API_OBSOLETE