]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/simple_lock.h
xnu-4903.241.1.tar.gz
[apple/xnu.git] / osfmk / kern / simple_lock.h
index c1a191adbdf6152e568b474bd8f4a455362a2b94..b66313f7fb56c6bc82ac4048922fe35bc1b161d5 100644 (file)
@@ -84,16 +84,25 @@ extern void                 hw_lock_init(
 extern void                    hw_lock_lock(
                                        hw_lock_t);
 
+extern void                    hw_lock_lock_nopreempt(
+                                       hw_lock_t);
+
 extern void                    hw_lock_unlock(
                                        hw_lock_t);
 
+extern void                    hw_lock_unlock_nopreempt(
+                                       hw_lock_t);
+
 extern unsigned int            hw_lock_to(
                                        hw_lock_t,
-                                       unsigned int);
+                                       uint64_t);
 
 extern unsigned int            hw_lock_try(
                                        hw_lock_t);
 
+extern unsigned int            hw_lock_try_nopreempt(
+                                       hw_lock_t);
+
 extern unsigned int            hw_lock_held(
                                        hw_lock_t);
 
@@ -166,6 +175,9 @@ extern void                 usimple_unlock(
 extern unsigned int            usimple_lock_try(
                                        usimple_lock_t);
 
+extern void            usimple_lock_try_lock_loop(
+                                       usimple_lock_t);
+
 __END_DECLS
 
 #define        ETAP_NO_TRACE   0
@@ -181,6 +193,7 @@ __END_DECLS
 #define        simple_lock(l)          usimple_lock(l)
 #define        simple_unlock(l)        usimple_unlock(l)
 #define simple_lock_try(l)     usimple_lock_try(l)
+#define simple_lock_try_lock_loop(l)   usimple_lock_try_lock_loop(l)
 #define simple_lock_addr(l)    (&(l))
 #endif /* !defined(simple_lock_init) */