Lines Matching refs:lock
284 return panic("lck_grp_lckcnt_incr(): invalid lock type: %d\n", lck_type);
312 return panic("lck_grp_lckcnt_decr(): invalid lock type: %d\n", lck_type);
410 panic("Invalid lock sleep action %x\n", lck_sleep_action);
441 panic("Invalid lock sleep action %x\n", lck_sleep_action);
474 panic("Invalid lock sleep action %x\n", lck_sleep_action);
510 panic("Invalid lock sleep action %x\n", lck_sleep_action);
826 panic("Invalid lock sleep action %x\n", lck_sleep_action);
864 panic("Invalid lock sleep action %x\n", lck_sleep_action);
976 extern void lock_done_EXT(lck_rw_t *lock);
977 extern void lock_free_EXT(lck_rw_t *lock);
978 extern void lock_init_EXT(lck_rw_t *lock, boolean_t can_sleep, unsigned short tag0, unsigned short tag1);
979 extern void lock_read_EXT(lck_rw_t *lock);
980 extern boolean_t lock_read_to_write_EXT(lck_rw_t *lock);
981 extern void lock_write_EXT(lck_rw_t *lock);
982 extern void lock_write_to_read_EXT(lck_rw_t *lock);
984 event_t event, lck_rw_t *lock, wait_interrupt_t interruptible);
997 extern void usimple_lock_EXT(lck_spin_t *lock);
998 extern void usimple_lock_init_EXT(lck_spin_t *lock, unsigned short tag);
999 extern unsigned int usimple_lock_try_EXT(lck_spin_t *lock);
1000 extern void usimple_unlock_EXT(lck_spin_t *lock);
1001 extern wait_result_t thread_sleep_usimple_lock_EXT(event_t event, lck_spin_t *lock, wait_interrupt_t interruptible);
1014 lck_rw_t *lock)
1016 (void) lck_rw_done(lock);
1021 lck_rw_t *lock)
1023 lck_rw_free(lock, &LockCompatGroup);
1028 lck_rw_t *lock,
1033 lck_rw_init(lock, &LockCompatGroup, LCK_ATTR_NULL);
1038 lck_rw_t *lock)
1040 lck_rw_lock_shared( lock);
1045 lck_rw_t *lock)
1047 return( lck_rw_lock_shared_to_exclusive(lock));
1052 lck_rw_t *lock)
1054 lck_rw_lock_exclusive(lock);
1059 lck_rw_t *lock)
1061 lck_rw_lock_exclusive_to_shared(lock);
1067 lck_rw_t *lock,
1070 return( lck_rw_sleep(lock, LCK_SLEEP_EXCLUSIVE, event, interruptible));
1137 lck_spin_t *lock)
1139 lck_spin_lock(lock);
1144 lck_spin_t *lock,
1147 lck_spin_init(lock, &LockCompatGroup, LCK_ATTR_NULL);
1152 lck_spin_t *lock)
1154 return(lck_spin_try_lock(lock));
1159 lck_spin_t *lock)
1161 lck_spin_unlock(lock);
1167 lck_spin_t *lock,
1170 return( lck_spin_sleep(lock, LCK_SLEEP_DEFAULT, event, interruptible));