]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOSharedLock.h
xnu-517.7.7.tar.gz
[apple/xnu.git] / iokit / IOKit / IOSharedLock.h
index 0f9e7bf33c39e1aef33d8e5047cb45688b9dc861..6d08fc5613d31820c17ebec06109497647b69d80 100644 (file)
@@ -55,9 +55,12 @@ extern "C" {
 typedef volatile int           IOSharedLockData;
 typedef IOSharedLockData    *   IOSharedLock;
 
-#define IOSpinLockInit(l)      (*(l) = (IOSpinLockData)0)
+#define IOSpinLockInit(l)      (*(l) = (IOSharedLockData)0)
 
+#ifndef KERNEL
 extern void IOSpinLock(IOSharedLock l);
+#endif
+
 extern void IOSpinUnlock(IOSharedLock l);
 extern boolean_t IOTrySpinLock(IOSharedLock l);
 
@@ -70,7 +73,10 @@ typedef ev_lock_data_t           *   ev_lock_t;
 // needs isync?
 //#define ev_is_locked(l)      (*(l) != (ev_lock_data_t)0)
 
+#ifndef KERNEL
 extern void ev_lock(ev_lock_t l);              // Spin lock!
+#endif
+
 extern void ev_unlock(ev_lock_t l);
 extern boolean_t ev_try_lock(ev_lock_t l);