/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/ |
H A D | xsem.c | 42 xsem_init(xsem_t *sem, int pshared, unsigned int value) argument 47 pthread_mutex_init(&sem->semMutex, NULL); 48 pthread_cond_init(&sem->semCV, NULL); 49 sem->semaphore = value; 55 xsem_destroy(xsem_t *sem) argument 57 pthread_mutex_destroy(&sem->semMutex); 58 pthread_cond_destroy(&sem->semCV); 59 sem->semaphore = 0; 63 xsem_wait(xsem_t *sem) argument 65 pthread_mutex_lock(&sem 93 xsem_trywait(xsem_t *sem) argument 116 xsem_post(xsem_t *sem) argument 128 xsem_getvalue(xsem_t *sem, int *sval) argument 136 xsem_xwait(xsem_t *sem, int timeout, timestruc_t *mytime) argument [all...] |
/illumos-gate/usr/src/cmd/lms/SyncLib/Include/ |
H A D | Lock.h | 48 Lock(Semaphore &sem) : _sem(&sem), _rw_lock(NULL) argument 78 TryLock(Semaphore &sem, bool &is_locked) : _sem(&sem) argument
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | sema.c | 35 ksema_init(ksema_t *sem, uint32_t val, argument 38 (void) _lwp_sema_init(sem, val); 43 ksema_destroy(ksema_t *sem) argument 48 sema_p(ksema_t *sem) argument 52 rv = _lwp_sema_wait(sem); 57 sema_v(ksema_t *sem) argument 59 (void) _lwp_sema_post(sem); 68 sema_p_sig(ksema_t *sem) argument 71 rv = _lwp_sema_wait(sem); 91 sema_tryp(ksema_t *sem) argument [all...] |
/illumos-gate/usr/src/lib/libbc/inc/include/sys/ |
H A D | sem.h | 67 struct sem *sem_base; /* ptr to first semaphore in set */ 77 struct sem { struct
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | sem.c | 47 char sad_name[PATH_MAX + 1]; /* name of sem object */ 61 sem_t *sem = NULL; local 132 /* new sem descriptor to be allocated and new address to be mapped */ 140 sem = (sem_t *)mmap64(NULL, sizeof (sem_t), PROT_READ|PROT_WRITE, 144 if (sem == MAP_FAILED) 150 error = sema_init((sema_t *)sem, value, USYNC_PROCESS, 0); 162 next->sad_addr = sem; 166 return (sem); 178 (void) munmap((caddr_t)sem, sizeof (sem_t)); 185 sem_close(sem_t *sem) argument 236 sem_invalid(sem_t *sem) argument 246 sem_init(sem_t *sem, int pshared, uint_t value) argument 259 sem_destroy(sem_t *sem) argument 273 sem_post(sem_t *sem) argument 287 sem_wait(sem_t *sem) argument 301 sem_timedwait(sem_t *sem, const timespec_t *abstime) argument 317 sem_reltimedwait_np(sem_t *sem, const timespec_t *reltime) argument 333 sem_trywait(sem_t *sem) argument 349 sem_getvalue(sem_t *sem, int *sval) argument [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | sem_impl.h | 37 #include <sys/sem.h> 65 struct sem *sem_base; /* ptr to first semaphore in set */ 75 * There is one semaphore structure (sem) for each semaphore in the system. 77 struct sem { struct
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_pmap.c | 702 unsigned sem; local 719 sem = getxdr_u_long(); 725 semantics_strs[sem],
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon.c | 3801 uint32_t sem; local 3848 sem = ddi_get32(cmdhdl, state->hs_cmd_regs.sw_semaphore); 3849 if (sem == 0) { 4831 uint32_t sem, reset_delay = state->hs_cfg_profile->cp_sw_reset_delay; local 4895 sem = ddi_get32(cmdhdl, state->hs_cmd_regs.sw_semaphore); 4896 if (sem == 0) {
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zoneadmd.c | 1842 sema_t sem; member in struct:__anon55 2027 if (sema_init(&shstate->sem, 0, USYNC_PROCESS, NULL) != 0) { 2095 (void) sema_wait(&shstate->sem); 2096 (void) sema_destroy(&shstate->sem); 2221 (void) sema_post(&shstate->sem); 2278 (void) sema_post(&shstate->sem);
|
/illumos-gate/usr/src/man/man3head/ |
H A D | Makefile | 69 sem.h.3head \ 158 sem.3head \ 247 sem.3head := LINKSRC = sem.h.3head
|