Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 718) sorted by relevance

12345678910>>...29

/illumos-gate/usr/src/uts/common/sys/
H A Dflock_impl.h237 (lock)->l_vnode != (vp)); (lock) = (lock)->l_next) \
239 (lock) = ((lock) == SLEEPING_HEAD((gp))) ? NULL : (lock); \
279 #define IS_REMOTE(lock) (! IS_LOCAL(lock)) argument
319 ((lock)->l_edge.edge_adj_next == &(lock)->l_edge && !IS_GRANTED(lock))
365 (lock)->l_next->l_prev = (lock)->l_prev; \
366 (lock)->l_prev->l_next = (lock)->l_next; \
371 ((lock)->l_edge.edge_in_next == &(lock)->l_edge)
381 #define HEAD(lock) (&(lock)->l_edge) argument
386 (lock)->l_edge.edge_adj_next = (lock)->l_edge.edge_adj_prev = &(lock)->l_edge; \
387 (lock)->l_edge.edge_in_next = (lock)->l_edge.edge_in_prev = &(lock)->l_edge; \
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_lock.c80 lock = smb_llist_next(llist, lock)) { in smb_lock_get_lock_count()
381 lock = smb_llist_next(llist, lock)) { in smb_lock_range_access()
403 lock->l_pid, lock->l_type); in smb_lock_range_access()
434 lock = smb_llist_next(&node->n_wlock_list, lock)) { in smb_node_destroy_lock_by_ofile()
678 ((lock->l_start + lock->l_length) > start)) in smb_lock_range_overlap()
691 } else if (start < lock->l_start + lock->l_length) in smb_lock_range_overlap()
732 lock = smb_llist_next(&node->n_lock_list, lock)) { in smb_lock_range_lckrules()
876 cv_wait(&lock->l_cv, &lock->l_mutex); in smb_lock_wait()
879 &lock->l_mutex, lock->l_end_time); in smb_lock_wait()
994 bzero(lock, sizeof (*lock)); in smb_lock_create()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dflock.c1120 lock = lock->l_next; in flk_process_request()
1144 lock = lock->l_next; in flk_process_request()
1176 lock = lock->l_next; in flk_process_request()
1185 lock = lock->l_prev; in flk_process_request()
1241 lock = lock->l_next; in flk_process_request()
1267 lock = lock->l_next; in flk_process_request()
1929 lock->l_vnode < vp); lock = lock->l_next) in flk_insert_sleeping_lock()
2008 lock = lock->l_next; in flk_cancel_sleeping_lock()
2021 lock = lock->l_next; in flk_cancel_sleeping_lock()
2402 lock = lock->l_next; in flk_get_first_blocking_lock()
[all …]
/illumos-gate/usr/src/cmd/vntsd/
H A Dvntsdvcc.c57 (void) mutex_lock(&clientp->lock); in vntsd_notify_client_cons_del()
69 (void) mutex_destroy(&consp->lock); in free_cons()
106 (void) mutex_lock(&consp->lock); in cleanup_cons()
125 (void) mutex_lock(&groupp->lock); in cleanup_cons()
130 (void) mutex_unlock(&consp->lock); in cleanup_cons()
166 (void) mutex_lock(&vntsdp->lock); in vntsd_delete_cons()
174 (void) mutex_lock(&groupp->lock); in vntsd_delete_cons()
229 (void) mutex_lock(&groupp->lock); in vntsd_clean_group()
244 (void) mutex_lock(&groupp->lock); in vntsd_clean_group()
297 (void) mutex_lock(&groupp->lock); in alloc_cons()
[all …]
H A Dconsole.c111 (void) mutex_lock(&consp->lock); in create_write_thread()
120 (void) mutex_unlock(&consp->lock); in create_write_thread()
124 (void) mutex_unlock(&consp->lock); in create_write_thread()
154 (void) mutex_lock(&groupp->lock); in list_all_domains()
257 (void) mutex_lock(&groupp->lock); in select_cons()
316 (void) mutex_lock(&groupp->lock); in select_cons()
359 (void) mutex_lock(&groupp->lock); in connect_cons()
374 (void) mutex_lock(&consp->lock); in connect_cons()
446 (void) mutex_lock(&consp->lock); in connect_cons()
527 (void) mutex_lock(&consp->lock); in is_client_que_empty()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso-fcntl.c55 struct flock lock;
61 lock.l_type = F_WRLCK;
79 lock.l_type = F_UNLCK;
133 lock.l_type = F_WRLCK;
135 lock.l_start = 0;
148 lock.l_type = F_UNLCK;
169 struct flock lock;
174 lock.l_type = F_UNLCK;
177 lock.l_type = F_WRLCK;
181 lock.l_start = k - 1;
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dlock.test25 do_test lock-1.0 {
29 do_test lock-1.1 {
32 do_test lock-1.2 {
35 do_test lock-1.3 {
39 #do_test lock-1.4 {
44 do_test lock-1.5 {
50 do_test lock-1.6 {
54 do_test lock-1.7 {
57 do_test lock-1.8 {
61 do_test lock-1.9 {
[all …]
/illumos-gate/usr/src/lib/libcrypt/common/
H A Dcryptio.c68 (void) mutex_lock(&lock); in run_setkey()
70 (void) mutex_unlock(&lock); in run_setkey()
76 (void) mutex_unlock(&lock); in run_setkey()
80 (void) mutex_unlock(&lock); in run_setkey()
83 (void) mutex_unlock(&lock); in run_setkey()
125 (void) mutex_lock(&lock); in run_crypt()
149 (void) mutex_unlock(&lock); in run_crypt()
160 (void) mutex_lock(&lock); in makekey()
178 (void) mutex_unlock(&lock); in makekey()
196 (void) mutex_lock(&lock); in crypt_close()
[all …]
/illumos-gate/usr/src/common/atomic/amd64/
H A Datomic.s46 lock
54 lock
62 lock
70 lock
80 lock
91 lock
102 lock
113 lock
122 lock
130 lock
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c234 db->lock = &lockp->lockinfo; in osa_adb_init_db()
235 db->lock->refcnt++; in osa_adb_init_db()
250 if (db->lock->refcnt == 0) { in osa_adb_fini_db()
254 db->lock->refcnt--; in osa_adb_fini_db()
257 if (db->lock->refcnt == 0) { in osa_adb_fini_db()
267 db->lock->lockfile = NULL; in osa_adb_fini_db()
283 db->lock->lockcnt++; in osa_adb_get_lock()
331 fileno(db->lock->lockfile), in osa_adb_get_lock()
358 db->lock->lockmode = mode; in osa_adb_get_lock()
359 db->lock->lockcnt++; in osa_adb_get_lock()
[all …]
/illumos-gate/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c65 struct flock lock; in _check_daemon_lock() local
73 lock.l_type = F_WRLCK; in _check_daemon_lock()
74 lock.l_whence = SEEK_SET; in _check_daemon_lock()
75 lock.l_start = (off_t)0; in _check_daemon_lock()
76 lock.l_len = (off_t)0; in _check_daemon_lock()
144 struct flock lock; in _enter_daemon_lock() local
152 lock.l_type = F_WRLCK; in _enter_daemon_lock()
153 lock.l_whence = SEEK_SET; in _enter_daemon_lock()
154 lock.l_start = (off_t)0; in _enter_daemon_lock()
155 lock.l_len = (off_t)0; in _enter_daemon_lock()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_mem.c117 k5_mutex_unlock(&id->lock); in krb5_rc_mem_get_span()
124 k5_mutex_unlock(&id->lock); in krb5_rc_mem_get_span()
149 k5_mutex_unlock(&id->lock); in krb5_rc_mem_init()
156 k5_mutex_unlock(&id->lock); in krb5_rc_mem_init()
221 k5_mutex_unlock(&grcache.lock); in krb5_rc_mem_resolve()
234 k5_mutex_unlock(&grcache.lock); in krb5_rc_mem_resolve()
272 k5_mutex_unlock(&id->lock); in krb5_rc_mem_store()
279 k5_mutex_unlock(&id->lock); in krb5_rc_mem_store()
283 k5_mutex_unlock(&id->lock); in krb5_rc_mem_store()
287 k5_mutex_unlock(&id->lock); in krb5_rc_mem_store()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_thread.c46 mutex_enter(&tthread->lock); in emlxs_taskq_thread()
65 mutex_exit(&tthread->lock); in emlxs_taskq_thread()
69 mutex_enter(&tthread->lock); in emlxs_taskq_thread()
75 mutex_exit(&tthread->lock); in emlxs_taskq_thread()
127 mutex_enter(&tthread->lock); in emlxs_taskq_dispatch()
131 mutex_exit(&tthread->lock); in emlxs_taskq_dispatch()
239 mutex_exit(&tthread->lock); in emlxs_taskq_destroy()
338 mutex_exit(&ethread->lock); in emlxs_thread()
411 mutex_exit(&ethread->lock); in emlxs_thread_destroy()
462 mutex_exit(&ethread->lock); in emlxs_thread_trigger1()
[all …]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_common_impl.h120 mutex_init(lock, name, type, arg)
121 #define MUTEX_ENTER(lock) mutex_enter(lock) argument
122 #define MUTEX_TRY_ENTER(lock) mutex_tryenter(lock) argument
123 #define MUTEX_EXIT(lock) mutex_exit(lock) argument
124 #define MUTEX_DESTROY(lock) mutex_destroy(lock) argument
126 #define RW_INIT(lock, name, type, arg) rw_init(lock, name, type, arg) argument
127 #define RW_ENTER_WRITER(lock) rw_enter(lock, RW_WRITER) argument
128 #define RW_ENTER_READER(lock) rw_enter(lock, RW_READER) argument
129 #define RW_TRY_ENTER(lock, type) rw_tryenter(lock, type) argument
130 #define RW_EXIT(lock) rw_exit(lock) argument
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfksmbfs_rwlock.c62 mutex_enter(&l->lock); in smbfs_rw_enter_sig()
84 cv_wait(&l->cv, &l->lock); in smbfs_rw_enter_sig()
110 mutex_exit(&l->lock); in smbfs_rw_enter_sig()
121 mutex_exit(&l->lock); in smbfs_rw_enter_sig()
134 mutex_enter(&l->lock); in smbfs_rw_tryenter()
150 mutex_exit(&l->lock); in smbfs_rw_tryenter()
162 mutex_exit(&l->lock); in smbfs_rw_tryenter()
169 mutex_exit(&l->lock); in smbfs_rw_tryenter()
178 mutex_enter(&l->lock); in smbfs_rw_exit()
204 mutex_exit(&l->lock); in smbfs_rw_exit()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_rwlock.c62 mutex_enter(&l->lock); in smbfs_rw_enter_sig()
88 mutex_exit(&l->lock); in smbfs_rw_enter_sig()
125 mutex_exit(&l->lock); in smbfs_rw_enter_sig()
138 mutex_exit(&l->lock); in smbfs_rw_enter_sig()
151 mutex_enter(&l->lock); in smbfs_rw_tryenter()
167 mutex_exit(&l->lock); in smbfs_rw_tryenter()
179 mutex_exit(&l->lock); in smbfs_rw_tryenter()
186 mutex_exit(&l->lock); in smbfs_rw_tryenter()
195 mutex_enter(&l->lock); in smbfs_rw_exit()
221 mutex_exit(&l->lock); in smbfs_rw_exit()
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_queue.c61 mutex_t *lock; member
75 mutex_t *lock; in slp_new_queue() local
82 if ((lock = calloc(1, sizeof (*lock))) == NULL) { in slp_new_queue()
104 q->lock = lock; in slp_new_queue()
125 (void) mutex_lock(q->lock); in slp_enqueue()
135 (void) mutex_unlock(q->lock); in slp_enqueue()
154 (void) mutex_lock(q->lock); in slp_enqueue_at_head()
160 (void) mutex_unlock(q->lock); in slp_enqueue_at_head()
199 (void) mutex_lock(q->lock); in slp_dequeue_timed()
221 (void) mutex_unlock(q->lock); in slp_dequeue_timed()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvcc.c402 mutex_enter(&vport->lock); in i_vcc_set_port_status()
405 mutex_exit(&vport->lock); in i_vcc_set_port_status()
497 mutex_exit(&vport->lock); in i_vcc_ldc_fini()
721 mutex_exit(&vport->lock); in i_vcc_config_port()
823 mutex_exit(&vport->lock); in i_vcc_add_port()
1028 mutex_exit(&vccp->lock); in vcc_attach()
1095 mutex_exit(&vccp->lock); in vcc_detach()
1219 mutex_exit(&vport->lock); in vcc_open()
1312 mutex_exit(&vport->lock); in vcc_close()
2242 mutex_exit(&vccp->lock); in i_vcc_md_remove_port()
[all …]
H A Dldc_shm.c204 mutex_enter(&ldcp->lock); in ldc_mem_alloc_handle()
211 mutex_exit(&ldcp->lock); in ldc_mem_alloc_handle()
239 mutex_exit(&ldcp->lock); in ldc_mem_alloc_handle()
263 mutex_enter(&mhdl->lock); in ldc_mem_free_handle()
271 mutex_exit(&mhdl->lock); in ldc_mem_free_handle()
274 mutex_exit(&mhdl->lock); in ldc_mem_free_handle()
373 mutex_enter(&mhdl->lock); in i_ldc_mem_bind_handle()
453 mutex_exit(&ldcp->lock); in i_ldc_mem_bind_handle()
638 mutex_exit(&mtbl->lock); in i_ldc_mem_bind_handle()
663 mutex_exit(&mhdl->lock); in i_ldc_mem_bind_handle()
[all …]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_ia_util.c463 dapl_os_lock(&hca_ptr->lock); in dapli_ia_release_hca()
482 dapl_os_unlock(&hca_ptr->lock); in dapli_ia_release_hca()
547 dapl_os_lock(&ia_ptr->header.lock); in dapl_ia_link_ep()
575 dapl_os_lock(&ia_ptr->header.lock); in dapl_ia_unlink_ep()
602 dapl_os_lock(&ia_ptr->header.lock); in dapl_ia_link_lmr()
630 dapl_os_lock(&ia_ptr->header.lock); in dapl_ia_unlink_lmr()
657 dapl_os_lock(&ia_ptr->header.lock); in dapl_ia_link_rmr()
685 dapl_os_lock(&ia_ptr->header.lock); in dapl_ia_unlink_rmr()
712 dapl_os_lock(&ia_ptr->header.lock); in dapl_ia_link_pz()
740 dapl_os_lock(&ia_ptr->header.lock); in dapl_ia_unlink_pz()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Daso.c27 asolock(unsigned int volatile* lock, unsigned int key, int type) in asolock() argument
35 if (*lock != 0) in asolock()
37 if (*lock != key) in asolock()
39 *lock = 0; in asolock()
43 if (*lock != key) in asolock()
45 if (*lock != 0) in asolock()
47 *lock = key; in asolock()
52 *lock = key; in asolock()
/illumos-gate/usr/src/uts/sun4u/excalibur/io/
H A Dxcalwd.c56 kmutex_t lock; member
318 mutex_enter(&tsp->lock); in xcalwd_timeout()
321 mutex_exit(&tsp->lock); in xcalwd_timeout()
324 mutex_exit(&tsp->lock); in xcalwd_timeout()
367 mutex_enter(&tsp->lock); in xcalwd_close()
370 mutex_exit(&tsp->lock); in xcalwd_close()
380 mutex_exit(&tsp->lock); in xcalwd_close()
433 mutex_exit(&tsp->lock); in xcalwd_ioctl()
445 mutex_exit(&tsp->lock); in xcalwd_ioctl()
461 mutex_exit(&tsp->lock); in xcalwd_ioctl()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dsem.c355 kmutex_t *lock; in semctl() local
382 mutex_exit(lock); in semctl()
414 mutex_exit(lock); in semctl()
431 mutex_exit(lock); in semctl()
445 mutex_exit(lock); in semctl()
455 mutex_exit(lock); in semctl()
668 kmutex_t *lock; in semget() local
733 mutex_exit(lock); in semget()
866 kmutex_t *lock; in semop() local
1095 lock = ipc_relock(sem_svc, sp->sem_perm.ipc_id, lock); in semop()
[all …]
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_vn.h87 krwlock_t lock; /* protect segvn_data and vpage array */ member
136 #define SEGVN_LOCK_ENTER(as, lock, type) rw_enter((lock), (type)) argument
137 #define SEGVN_LOCK_EXIT(as, lock) rw_exit((lock)) argument
138 #define SEGVN_LOCK_DOWNGRADE(as, lock) rw_downgrade((lock)) argument
139 #define SEGVN_LOCK_TRYENTER(as, lock, type) rw_tryenter((lock), (type)) argument
144 #define SEGVN_LOCK_HELD(as, lock) RW_LOCK_HELD((lock)) argument
145 #define SEGVN_READ_HELD(as, lock) RW_READ_HELD((lock)) argument
146 #define SEGVN_WRITE_HELD(as, lock) RW_WRITE_HELD((lock)) argument
/illumos-gate/usr/src/common/atomic/i386/
H A Datomic.s48 lock
57 lock
67 lock
79 lock
91 lock
104 lock
131 lock
145 lock
154 lock
164 lock
[all …]

12345678910>>...29