/illumos-gate/usr/src/head/ |
H A D | synch.h | 146 {{0, 0, 0, {USYNC_THREAD}, MUTEX_MAGIC}, \ 152 {{0, 0, 0, {USYNC_THREAD|LOCK_RECURSIVE}, MUTEX_MAGIC}, \ 155 {{0, 0, 0, {USYNC_THREAD|LOCK_ERRORCHECK}, MUTEX_MAGIC}, \ 158 {{0, 0, 0, {USYNC_THREAD|LOCK_RECURSIVE|LOCK_ERRORCHECK}, \ 161 {{{0, 0, 0, 0}, USYNC_THREAD, COND_MAGIC}, 0} 165 {0, USYNC_THREAD, SEMA_MAGIC, {0, 0, 0}, {0, 0}} 169 {0, USYNC_THREAD, RWL_MAGIC, DEFAULTMUTEX, DEFAULTCV, DEFAULTCV}
|
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | aio_alloc.c | 122 (void) mutex_init(&aiowp->work_qlock1, USYNC_THREAD, NULL); in _aio_worker_alloc() 123 (void) cond_init(&aiowp->work_idle_cv, USYNC_THREAD, NULL); in _aio_worker_alloc() 273 (void) mutex_init(&head->lio_mutex, USYNC_THREAD, NULL); in _aio_lio_alloc() 274 (void) cond_init(&head->lio_cond_cv, USYNC_THREAD, NULL); in _aio_lio_alloc() 330 (void) mutex_init(&worker_lock, USYNC_THREAD, NULL); in postfork1_child_aio() 337 (void) mutex_init(&__aio_cache_lock, USYNC_THREAD, NULL); in postfork1_child_aio() 344 (void) mutex_init(&__lio_mutex, USYNC_THREAD, NULL); in postfork1_child_aio() 346 (void) mutex_init(&__aio_initlock, USYNC_THREAD, NULL); in postfork1_child_aio() 347 (void) cond_init(&__aio_initcv, USYNC_THREAD, NULL); in postfork1_child_aio() 350 (void) mutex_init(&__aio_mutex, USYNC_THREAD, NULL); in postfork1_child_aio() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | mutex-16200.c | 98 .mt_type = USYNC_THREAD, 103 .mt_type = USYNC_THREAD | LOCK_ERRORCHECK, 108 .mt_type = USYNC_THREAD | LOCK_RECURSIVE, 113 .mt_type = USYNC_THREAD | LOCK_RECURSIVE | LOCK_ERRORCHECK, 118 .mt_type = USYNC_THREAD | LOCK_ERRORCHECK, 123 .mt_type = USYNC_THREAD | LOCK_RECURSIVE | LOCK_ERRORCHECK,
|
/illumos-gate/usr/src/lib/libc/port/tpool/ |
H A D | thread_pool.c | 273 (void) mutex_init(&tpool->tp_mutex, USYNC_THREAD, NULL); in tpool_create() 274 (void) cond_init(&tpool->tp_busycv, USYNC_THREAD, NULL); in tpool_create() 275 (void) cond_init(&tpool->tp_workcv, USYNC_THREAD, NULL); in tpool_create() 276 (void) cond_init(&tpool->tp_waitcv, USYNC_THREAD, NULL); in tpool_create() 527 (void) mutex_init(&tpool->tp_mutex, USYNC_THREAD, NULL); in postfork1_child_tpool() 528 (void) cond_init(&tpool->tp_busycv, USYNC_THREAD, NULL); in postfork1_child_tpool() 529 (void) cond_init(&tpool->tp_workcv, USYNC_THREAD, NULL); in postfork1_child_tpool() 530 (void) cond_init(&tpool->tp_waitcv, USYNC_THREAD, NULL); in postfork1_child_tpool()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_svc.c | 696 mutex_init(&merges_lock, USYNC_THREAD, NULL); in main() 697 cond_init(&merges_cond, USYNC_THREAD, NULL); in main() 782 rwlock_init(&thr_rwlock, USYNC_THREAD, NULL); in main() 783 mutex_init(&crash_lock, USYNC_THREAD, NULL); in main() 784 mutex_init(&name_addrlock, USYNC_THREAD, NULL); in main() 785 cond_init(&retrywait, USYNC_THREAD, NULL); in main()
|
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | sysevent_client.c | 83 if (mutex_init(&scp->client_lock, USYNC_THREAD, NULL) != 0) in initialize_client_tbl() 122 (void) cond_init(&scp->client_cv, USYNC_THREAD, in insert_client()
|
H A D | syseventd.c | 404 (void) mutex_init(&err_mutex, USYNC_THREAD, NULL); in main() 418 USYNC_THREAD, NULL); in main() 419 (void) sema_init(&sema_dispatch, 0, USYNC_THREAD, NULL); in main() 421 USYNC_THREAD, NULL); in main() 422 (void) cond_init(&event_comp_cv, USYNC_THREAD, NULL); in main() 438 (void) mutex_init(&client_tbl_lock, USYNC_THREAD, NULL); in main() 439 (void) mutex_init(&ev_comp_lock, USYNC_THREAD, NULL); in main() 440 (void) mutex_init(&door_lock, USYNC_THREAD, NULL); in main() 441 (void) rwlock_init(&mod_unload_lock, USYNC_THREAD, NULL); in main() 1046 (void) sema_init(&ev_comp->client_sema, 0, USYNC_THREAD, NULL); in dispatch()
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_plugin.c | 138 if (mutex_init(&vpp->vpp_lock, USYNC_THREAD | LOCK_ERRORCHECK, in libvarpd_plugin_register() 223 if (mutex_init(&varpd_load_lock, USYNC_THREAD | LOCK_RECURSIVE | in libvarpd_plugin_init() 227 if (cond_init(&varpd_load_cv, USYNC_THREAD, NULL) != 0) in libvarpd_plugin_init()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_taskq.c | 225 VERIFY0(rwlock_init(&ztq->ztq_threadlock, USYNC_THREAD, NULL)); in zfs_taskq_create() 226 VERIFY0(cond_init(&ztq->ztq_dispatch_cv, USYNC_THREAD, NULL)); in zfs_taskq_create() 227 VERIFY0(cond_init(&ztq->ztq_wait_cv, USYNC_THREAD, NULL)); in zfs_taskq_create() 228 VERIFY0(cond_init(&ztq->ztq_maxalloc_cv, USYNC_THREAD, NULL)); in zfs_taskq_create()
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPOpen.c | 51 (void) mutex_init(&(hp->outcall_lock), USYNC_THREAD, NULL); in SLPOpen() 52 (void) cond_init(&(hp->outcall_cv), USYNC_THREAD, NULL); in SLPOpen()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_readdir.c | 379 (void) rwlock_init(&p->rwlock, USYNC_THREAD, NULL); in autofs_rddir_cache_enter() 380 (void) mutex_init(&p->lock, USYNC_THREAD, NULL); in autofs_rddir_cache_enter() 567 mutex_init(&cleanup_lock, USYNC_THREAD, NULL); in cache_cleanup() 568 cond_init(&cleanup_start_cv, USYNC_THREAD, NULL); in cache_cleanup() 569 cond_init(&cleanup_done_cv, USYNC_THREAD, NULL); in cache_cleanup()
|
/illumos-gate/usr/src/cmd/syseventd/modules/datalink_mod/ |
H A D | datalink_mod.c | 169 (void) mutex_init(&dl_mx, USYNC_THREAD, NULL); in slm_init() 170 (void) cond_init(&dl_cv, USYNC_THREAD, NULL); in slm_init()
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | trackio.c | 96 (void) mutex_init(&tio_mutex, USYNC_THREAD, 0); in init_tio_data() 97 (void) cond_init(&tio_cond, USYNC_THREAD, 0); in init_tio_data() 106 (void) mutex_init(&pcb_mutex, USYNC_THREAD, 0); in init_pcb_data() 107 (void) cond_init(&pcb_cond, USYNC_THREAD, 0); in init_pcb_data()
|
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_reg_mod/ |
H A D | sysevent_reg_mod.c | 230 (void) mutex_init(&evq_lock, USYNC_THREAD, NULL); in slm_init() 231 (void) cond_init(&evq_cv, USYNC_THREAD, NULL); in slm_init()
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | c11_thr.c | 130 mtype = USYNC_THREAD; in mtx_init() 134 mtype = USYNC_THREAD | LOCK_RECURSIVE; in mtx_init()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_access.c | 510 (void) mutex_init(mutex, USYNC_THREAD, NULL); in _nscd_alloc() 519 (void) rwlock_init(rwlock, USYNC_THREAD, NULL); in _nscd_alloc() 529 (void) cond_init(cond, USYNC_THREAD, NULL); in _nscd_alloc()
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_comm.c | 69 if (cond_init(&hi->h_cv, USYNC_THREAD, NULL) != 0) { in ilb_open() 74 if (mutex_init(&hi->h_lock, USYNC_THREAD | LOCK_ERRORCHECK, NULL) in ilb_open()
|
/illumos-gate/usr/src/cmd/vntsd/ |
H A D | vntsdvcc.c | 287 (void) mutex_init(&consp->lock, USYNC_THREAD|LOCK_ERRORCHECK, NULL); in alloc_cons() 288 (void) cond_init(&consp->cvp, USYNC_THREAD, NULL); in alloc_cons() 342 (void) mutex_init(&groupp->lock, USYNC_THREAD|LOCK_ERRORCHECK, NULL); in alloc_group() 343 (void) cond_init(&groupp->cvp, USYNC_THREAD, NULL); in alloc_group()
|
/illumos-gate/usr/src/cmd/syseventd/modules/devfsadmd_mod/ |
H A D | devfsadmd_mod.c | 333 (void) mutex_init(&evq_lock, USYNC_THREAD, NULL); in slm_init() 334 (void) cond_init(&evq_cv, USYNC_THREAD, NULL); in slm_init()
|
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventconfd/ |
H A D | syseventconfd.c | 198 (void) mutex_init(&create_cnt_lock, USYNC_THREAD, NULL); in main() 199 (void) mutex_init(&cmd_list_lock, USYNC_THREAD, NULL); in main() 200 (void) cond_init(&cmd_list_cv, USYNC_THREAD, NULL); in main()
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | idmapd.c | 266 if (rwlock_init(&_idmapdstate.rwlk_cfg, USYNC_THREAD, NULL) != 0) in main() 268 if (mutex_init(&_idmapdstate.addisc_lk, USYNC_THREAD, NULL) != 0) in main() 270 if (cond_init(&_idmapdstate.addisc_cv, USYNC_THREAD, NULL) != 0) in main()
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | decl.h | 362 (void) rwlock_init((lock), USYNC_THREAD, 0); \ 367 (void) mutex_init(lock, USYNC_THREAD, 0); \
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | priplugin.c | 124 (void) mutex_init(&rebuild_lock, USYNC_THREAD, NULL); in priplugin_init() 125 (void) cond_init(&rebuild_cv, USYNC_THREAD, NULL); in priplugin_init()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | fdopendir.c | 74 (void) mutex_init(&pdirp->dd_lock, USYNC_THREAD, NULL); in fdopendir()
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | mutex.c | 36 {{0, 0, 0, {USYNC_THREAD|LOCK_ERRORCHECK}, _MUTEX_MAGIC},
|