/illumos-gate/usr/src/head/ |
H A D | synch.h | 149 {{0, 0, 0, {USYNC_PROCESS}, MUTEX_MAGIC}, \ 163 {{{0, 0, 0, 0}, USYNC_PROCESS, COND_MAGIC}, 0} 167 {0, USYNC_PROCESS, SEMA_MAGIC, {0, 0, 0}, {0, 0}} 171 {0, USYNC_PROCESS, RWL_MAGIC, SHAREDMUTEX, SHAREDCV, SHAREDCV}
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | synch.c | 144 type |= (USYNC_PROCESS | LOCK_ROBUST); in mutex_init() 145 basetype = USYNC_PROCESS; in mutex_init() 180 if (basetype == USYNC_PROCESS) in mutex_init() 1017 if (mtype & USYNC_PROCESS) { in mutex_lock_kernel() 1076 if (mtype & USYNC_PROCESS) { in mutex_trylock_kernel() 2138 } else if (mtype & USYNC_PROCESS) { in mutex_lock_internal() 2296 if (mtype & USYNC_PROCESS) in mutex_lock_impl() 2425 if (mtype & USYNC_PROCESS) in mutex_trylock() 2909 mp->mutex_type = USYNC_PROCESS; in pthread_spin_init() 3491 if (!(mtype & USYNC_PROCESS)) in cond_wait_common() [all …]
|
H A D | sema.c | 48 if ((type != USYNC_THREAD && type != USYNC_PROCESS) || in sema_init() 114 if (lsp->type == USYNC_PROCESS) { /* kernel-level */ in sema_wait_impl() 241 if (lsp->type == USYNC_PROCESS) { /* kernel-level */ in sema_trywait() 308 if (lsp->type == USYNC_PROCESS) { /* kernel-level */ in sema_post()
|
H A D | rwlock.c | 206 if (type != USYNC_THREAD && type != USYNC_PROCESS) in rwlock_init() 749 else if (rwlp->rwlock_type == USYNC_PROCESS) /* kernel-level */ in rw_rdlock_impl() 846 else if (rwlp->rwlock_type == USYNC_PROCESS) /* kernel-level */ in rw_wrlock_impl() 854 if (rwlp->rwlock_type == USYNC_PROCESS) in rw_wrlock_impl() 946 else if (rwlp->rwlock_type == USYNC_PROCESS) /* kernel-level */ in rw_tryrdlock() 985 else if (rwlp->rwlock_type == USYNC_PROCESS) /* kernel-level */ in rw_trywrlock() 992 if (rwlp->rwlock_type == USYNC_PROCESS) in rw_trywrlock() 1089 } else if (rwlp->rwlock_type == USYNC_PROCESS) { in rw_unlock()
|
H A D | assfail.c | 219 else if (!(mcopy.mutex_type & USYNC_PROCESS)) { in lock_error() 283 process = (rcopy.rwlock_type & USYNC_PROCESS); in rwlock_error()
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | lwp.c | 57 sp->type = USYNC_PROCESS; in _lwp_sema_init()
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | sem.c | 148 error = sema_init((sema_t *)sem, value, USYNC_PROCESS, 0); in sem_open() 249 pshared ? USYNC_PROCESS : USYNC_THREAD, NULL)) != 0) { in sem_init()
|
H A D | mqueue.c | 191 USYNC_PROCESS | LOCK_ROBUST, NULL); in mq_init()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lwp_sobj.c | 351 (ent->lwpchan_type & (USYNC_PROCESS | LOCK_ROBUST)) in lwpchan_destroy_cache() 352 == (USYNC_PROCESS | LOCK_ROBUST)) in lwpchan_destroy_cache() 491 if (!(type & USYNC_PROCESS)) { in get_lwpchan() 1218 (type & USYNC_PROCESS)? p->p_pid : 0); in lwp_mutex_timedlock() 2428 if ((mtype != USYNC_PROCESS) || (type != USYNC_PROCESS)) { in lwp_rwlock_lock() 2747 if (type != USYNC_PROCESS) { in lwp_rwlock_unlock() 2887 if ((ent->lwpchan_type & (USYNC_PROCESS | LOCK_ROBUST)) in lwp_mutex_cleanup() 2888 != (USYNC_PROCESS | LOCK_ROBUST)) in lwp_mutex_cleanup() 2997 if ((type & (USYNC_PROCESS|LOCK_ROBUST)) in lwp_mutex_register() 2998 != (USYNC_PROCESS|LOCK_ROBUST)) { in lwp_mutex_register() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | synch.h | 130 #define USYNC_PROCESS 0x01 /* shared by processes */ macro
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | cache.c | 88 (void) rwlock_init(&imc->l, USYNC_PROCESS, NULL); in cache_init()
|
/illumos-gate/usr/src/cmd/ypcmd/shared/ |
H A D | lockmap.c | 133 USYNC_PROCESS | LOCK_ROBUST, 0)) { in init_locks_mem()
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | lock_update.c | 79 USYNC_PROCESS | LOCK_ROBUST, 0)) != 0) { in init_update_locks_mem()
|
/illumos-gate/usr/src/lib/libc_db/common/ |
H A D | thread_db.c | 2520 (generic_so.lock.mutex_type & USYNC_PROCESS); in sync_get_info_common() 2530 if (si_p->si_shared_type & USYNC_PROCESS) in sync_get_info_common() 2540 (generic_so.condition.cond_type & USYNC_PROCESS); in sync_get_info_common() 2555 (generic_so.semaphore.type & USYNC_PROCESS); in sync_get_info_common() 2572 (generic_so.rwlock.rwlock_type & USYNC_PROCESS); in sync_get_info_common() 2582 if (si_p->si_shared_type & USYNC_PROCESS) in sync_get_info_common()
|
/illumos-gate/usr/src/lib/libuuid/common/ |
H A D | uuid.c | 275 (void) mutex_init(&data->lock, USYNC_PROCESS|LOCK_ROBUST, 0); in map_state()
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zoneadmd.c | 2052 if (sema_init(&shstate->sem, 0, USYNC_PROCESS, NULL) != 0) { in main()
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | expound.c | 530 (USYNC_PROCESS | LOCK_ERRORCHECK | LOCK_RECURSIVE | \ 540 if (type & USYNC_PROCESS) in synch_type()
|
H A D | main.c | 586 i = sharedmem? USYNC_PROCESS : USYNC_THREAD; in main()
|