Home
last modified time | relevance | path

Searched refs:sem_op (Results 1 – 19 of 19) sorted by relevance

/third_party/ltp/testcases/kernel/ipc/pipeio/
Dpipeio.c506 struct sembuf sem_op; in do_child() local
525 sem_op = (struct sembuf) { in do_child()
526 .sem_num = 0, .sem_op = 1, .sem_flg = 0}; in do_child()
528 if (semop(sem_id, &sem_op, 1) == -1) { in do_child()
585 sem_op = (struct sembuf) { in do_child()
586 .sem_num = 1, .sem_op = -1, .sem_flg = 0}; in do_child()
587 if (semop(sem_id, &sem_op, 1) == -1) in do_child()
621 struct sembuf sem_op; in do_parent() local
635 sem_op = (struct sembuf) { in do_parent()
636 .sem_num = 1, .sem_op = num_writers, .sem_flg = 0}; in do_parent()
[all …]
/third_party/ltp/testcases/kernel/containers/sysvipc/
Dsem_comm.c79 sm.sem_op = -1; in chld1_sem()
90 sm.sem_op = 1; in chld1_sem()
123 sm.sem_op = -1; in chld2_sem()
138 sm.sem_op = 1; in chld2_sem()
/third_party/musl/libc-test/src/functionalext/supplement/ipc/
Dsemtimedop.c55 struct sembuf ops[] = {{.sem_num = 0, .sem_op = 1, .sem_flg = 0}}; in semtimedop_0100()
62 ops[0].sem_op = 0; in semtimedop_0100()
79 ops[0].sem_op = -1; in semtimedop_0100()
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/
Dsemctl06.c182 semops[i].sem_op = maxsemvals[i]; in dotest()
268 semops[j].sem_op = in dosemas()
271 } while (semops[j].sem_op == 0); in dosemas()
278 semops[j].sem_op = (-semops[j].sem_op); in dosemas()
Dsemctl01.c103 sops.sem_op = 1; in cnt_setup()
107 sops.sem_op = opval; in cnt_setup()
130 sops.sem_op = 1; in child_pid()
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/
Dsemop02.c45 short *sem_op; member
115 .sem_op = *tc[i].sem_op, in run()
Dsemop01.c86 sops[i].sem_op = i * i; in setup()
Dsemop03.c40 .sem_op = tc[i].op, in do_child()
/third_party/ltp/testcases/kernel/ipc/semaphore/
Dsem01.c53 semops.sem_op = 1; in semup()
67 semops.sem_op = -1; in semdown()
/third_party/musl/libc-test/src/functional/
Dipc_sem.c73 sops.sem_op = 1; in inc()
97 sops.sem_op = -1; in dec()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
Dthugetlb.c80 sembuffer->sem_op = -1; in get_semaphore()
88 sembuffer->sem_op = 1; in put_semaphore()
Dtinjpage.c614 sembuffer->sem_op = -1; in get_semaphore()
622 sembuffer->sem_op = 1; in put_semaphore()
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dsem.h51 short sem_op; member
/third_party/musl/porting/uniproton/kernel/include/sys/
Dsem.h51 short sem_op; member
/third_party/musl/ndk_musl_include/sys/
Dsem.h51 short sem_op; member
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dsem.h51 short sem_op; member
/third_party/musl/include/sys/
Dsem.h51 short sem_op; member
/third_party/musl/libc-test/src/api/
Dsys_sem.c28 F(short, sem_op) in f()
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/
Dpage-poisoning.c531 sb.sem_op = -1; in request_sem()
544 sb.sem_op = -1; in waiton_sem()
546 sb.sem_op = 0; in waiton_sem()
555 sb.sem_op = 1; in release_sem()