Searched refs:semval (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/include/uapi/linux/
H A Dsem.h11 #define GETVAL 12 /* get semval */
12 #define GETALL 13 /* get all semval's */
15 #define SETVAL 16 /* set semval */
16 #define SETALL 17 /* set all semval's */
/linux-4.4.14/ipc/
H A Dsem.c94 int semval; /* current value */ member in struct:sem
628 result = curr->semval; perform_atomic_semop()
647 curr->semval = result; perform_atomic_semop()
675 sma->sem_base[sop->sem_num].semval -= sem_op; perform_atomic_semop()
766 * semval value and couldn't proceed. The operation check_restart()
844 if (sma->sem_base[num].semval == 0) { do_smart_wakeup_zero()
855 if (sma->sem_base[i].semval == 0) { do_smart_wakeup_zero()
915 if (semnum != -1 && sma->sem_base[semnum].semval == 0) update_queue()
1044 * semncnt number of tasks waiting on semval being nonzero
1045 * semzcnt number of tasks waiting on semval being zero
1327 curr->semval = val; semctl_setval()
1400 sem_io[i] = sma->sem_base[i].semval; semctl_main()
1448 sma->sem_base[i].semval = sem_io[i]; semctl_main()
1476 err = curr->semval; semctl_main()
2060 * manner or not. That is, if we are attempting to decrement the semval
2146 semaphore->semval += un->semadj[i]; exit_sem()
2160 if (semaphore->semval < 0) exit_sem()
2161 semaphore->semval = 0; exit_sem()
2162 if (semaphore->semval > SEMVMX) exit_sem()
2163 semaphore->semval = SEMVMX; exit_sem()

Completed in 81 milliseconds