/third_party/ltp/testcases/kernel/syscalls/ipc/semop/ |
H A D | semop.h | 23 { .semop = semop, .ts_type = TST_LIBC_TIMESPEC, .desc = "semop: syscall"}, 37 if (tv->semop) in call_semop() 38 return tv->semop(semid, sops, nsops); in call_semop()
|
H A D | semop05.c | 24 * One thread performs a semop() with the SEM_UNDO flag set. The change in 25 * sempaphore value performed by that semop should be "undone" only when the 121 place, the semop should complete and we'll print "Waiter done 132 semop(sem_id, &Psembuf, 1); in waiter() 148 semop(sem_id, &Vsembuf, 1); in poster()
|
H A D | semop02.c | 8 * ERANGE - semop + semval > semvmx a maximal semaphore value 11 * EAGAIN - semop = 0 for non-zero semaphore and IPC_NOWAIT passed in flags 12 * EAGAIN - semop = -1 for zero semaphore and IPC_NOWAIT passed in flags 13 * EAGAIN - semop = 0 and timeout happens 14 * EAGAIN - semop = -1 and timeout happens 28 #include "semop.h" 122 if (tc[i].semtimedop_only && tv->semop) { in run() 148 tst_res(TPASS | TTERRNO, "semop failed as expected"); in run() 151 "semop failed unexpectedly; expected: %s", in run()
|
/third_party/backends/backend/ |
H A D | snapscan-mutex.c | 161 semop(*sem_id, &sem_signal, 1); in snapscani_mutex_open() 173 semop(*sem_id, &sem_wait, 1); in snapscani_mutex_lock() 178 semop(*sem_id, &sem_signal, 1); in snapscani_mutex_unlock()
|
/third_party/ltp/testcases/kernel/ipc/semaphore/ |
H A D | sem02.c | 24 * One thread performs a semop() with the SEM_UNDO flag set. The change in 25 * sempaphore value performed by that semop should be "undone" only when the 121 place, the semop should complete and we'll print "Waiter done 132 semop(sem_id, &Psembuf, 1); in waiter() 148 semop(sem_id, &Vsembuf, 1); in poster()
|
H A D | sem01.c | 55 if (semop(semid, &semops, 1) == -1) { in semup() 69 if (semop(semid, &semops, 1) == -1) { in semdown()
|
/third_party/musl/libc-test/src/functionalext/supplement/ipc/ |
H A D | semtimedop.c | 56 semop(id, ops, 1); in semtimedop_0100() 82 semop(id, ops, 1); in semtimedop_0100()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/ |
H A D | semctl06.c | 25 * semctl(2) semget(2) semop(2) 185 if (semop(id, semops, NSEMS) < 0) { in dotest() 186 tst_resm(TFAIL, "\tfirst semop() failed errno %d", errno); in dotest() 273 if (semop(id, semops, NSEMS) < 0) { in dosemas() 280 if (semop(id, semops, NSEMS) < 0) { in dosemas()
|
H A D | semctl01.c | 84 * Do a semop that will cause the child to sleep. in child_cnt() 87 * by the semop() call. in child_cnt() 89 if (semop(sem_id, &sops, 1) != -1) in child_cnt() 90 tst_brk(TBROK, "semop succeeded - cnt_setup"); in child_cnt() 133 * Do a semop that will increment the semaphore. in child_pid() 209 TST_EXP_FAIL(semop(sem_id, &sops, 1), EINVAL, "semaphore appears to be removed"); in func_rmid()
|
/third_party/musl/libc-test/src/functional/ |
H A D | ipc_sem.c | 75 T(semop(semid, &sops, 1)); in inc() 99 T(semop(semid, &sops, 1)); in dec()
|
/third_party/ltp/testcases/kernel/ipc/pipeio/ |
H A D | pipeio.c | 528 if (semop(sem_id, &sem_op, 1) == -1) { in do_child() 587 if (semop(sem_id, &sem_op, 1) == -1) in do_child() 637 if (semop(sem_id, &sem_op, 1) == -1) { in do_parent() 646 && semop(sem_id, &sem_op, 1) == -1) { in do_parent()
|
/third_party/musl/src/ipc/ |
H A D | semop.c | 6 int semop(int id, struct sembuf *buf, size_t n) in semop() function
|
/third_party/musl/porting/liteos_a/user/src/ipc/ |
H A D | semop.c | 7 int semop(int id, struct sembuf *buf, size_t n) in semop() function
|
/third_party/ltp/testcases/kernel/mce-test/hwpoison/ |
H A D | thugetlb.c | 82 return semop(sem_id, sembuffer, 1); in get_semaphore() 90 return semop(sem_id, sembuffer, 1); in put_semaphore()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
H A D | thugetlb.c | 82 return semop(sem_id, sembuffer, 1); in get_semaphore() 90 return semop(sem_id, sembuffer, 1); in put_semaphore()
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | sem.h | 57 int semop(int, struct sembuf *, size_t);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | sem.h | 57 int semop(int, struct sembuf *, size_t);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | sem.h | 57 int semop(int, struct sembuf *, size_t);
|
/third_party/musl/include/sys/ |
H A D | sem.h | 57 int semop(int, struct sembuf *, size_t);
|
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/ |
H A D | page-poisoning.c | 534 semop(id, &sb, 1); in request_sem() 545 semop(id, &sb, 1); in waiton_sem() 547 semop(id, &sb, 1); in waiton_sem() 558 semop(id, &sb, 1); in release_sem()
|
/third_party/ltp/testcases/kernel/containers/sysvipc/ |
H A D | sem_comm.c | 81 TEST(semop(id, &sm, 1)); in chld2_sem() 84 tst_brk(TBROK | TERRNO, "semop error"); in chld2_sem()
|
H A D | semtest_2ns.c | 97 TEST(semop(id, &sm, 1)); in check_sem2()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_sem.c | 33 {int(*p)(int,struct sembuf*,size_t) = semop;} in f()
|
/third_party/ltp/include/ |
H A D | time64_variants.h | 53 int (*semop)(int semid, struct sembuf *sops, size_t nsops); member
|
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_direct.h | 289 int err = semop(dmix->semid, op, 2); in snd_pcm_direct_semaphore_down() 300 int err = semop(dmix->semid, &op, 1); in snd_pcm_direct_semaphore_up()
|