X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/fe8ab488e9161c46dd9885d58fc52996dc0249ff..b226f5e54a60dc81db17b1260381d7dbfea3cdf1:/osfmk/kern/simple_lock.h diff --git a/osfmk/kern/simple_lock.h b/osfmk/kern/simple_lock.h index c1a191adb..b66313f7f 100644 --- a/osfmk/kern/simple_lock.h +++ b/osfmk/kern/simple_lock.h @@ -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) */