Home
last modified time | relevance | path

Searched refs:semop (Results 1 - 25 of 33) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/ipc/semop/
H A Dsemop.h23 { .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 Dsemop05.c24 * 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 Dsemop02.c8 * 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 Dsnapscan-mutex.c161 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 Dsem02.c24 * 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 Dsem01.c55 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 Dsemtimedop.c56 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 Dsemctl06.c25 * 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 Dsemctl01.c84 * 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 Dipc_sem.c75 T(semop(semid, &sops, 1)); in inc()
99 T(semop(semid, &sops, 1)); in dec()
/third_party/ltp/testcases/kernel/ipc/pipeio/
H A Dpipeio.c528 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 Dsemop.c6 int semop(int id, struct sembuf *buf, size_t n) in semop() function
/third_party/musl/porting/liteos_a/user/src/ipc/
H A Dsemop.c7 int semop(int id, struct sembuf *buf, size_t n) in semop() function
/third_party/ltp/testcases/kernel/mce-test/hwpoison/
H A Dthugetlb.c82 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 Dthugetlb.c82 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 Dsem.h57 int semop(int, struct sembuf *, size_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dsem.h57 int semop(int, struct sembuf *, size_t);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dsem.h57 int semop(int, struct sembuf *, size_t);
/third_party/musl/include/sys/
H A Dsem.h57 int semop(int, struct sembuf *, size_t);
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/
H A Dpage-poisoning.c534 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 Dsem_comm.c81 TEST(semop(id, &sm, 1)); in chld2_sem()
84 tst_brk(TBROK | TERRNO, "semop error"); in chld2_sem()
H A Dsemtest_2ns.c97 TEST(semop(id, &sm, 1)); in check_sem2()
/third_party/musl/libc-test/src/api/
H A Dsys_sem.c33 {int(*p)(int,struct sembuf*,size_t) = semop;} in f()
/third_party/ltp/include/
H A Dtime64_variants.h53 int (*semop)(int semid, struct sembuf *sops, size_t nsops); member
/third_party/alsa-lib/src/pcm/
H A Dpcm_direct.h289 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()

Completed in 10 milliseconds

12