Searched refs:sem_op (Results 1 – 19 of 19) sorted by relevance
/third_party/ltp/testcases/kernel/ipc/pipeio/ |
D | pipeio.c | 506 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/ |
D | sem_comm.c | 79 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/ |
D | semtimedop.c | 55 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/ |
D | semctl06.c | 182 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()
|
D | semctl01.c | 103 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/ |
D | semop02.c | 45 short *sem_op; member 115 .sem_op = *tc[i].sem_op, in run()
|
D | semop01.c | 86 sops[i].sem_op = i * i; in setup()
|
D | semop03.c | 40 .sem_op = tc[i].op, in do_child()
|
/third_party/ltp/testcases/kernel/ipc/semaphore/ |
D | sem01.c | 53 semops.sem_op = 1; in semup() 67 semops.sem_op = -1; in semdown()
|
/third_party/musl/libc-test/src/functional/ |
D | ipc_sem.c | 73 sops.sem_op = 1; in inc() 97 sops.sem_op = -1; in dec()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
D | thugetlb.c | 80 sembuffer->sem_op = -1; in get_semaphore() 88 sembuffer->sem_op = 1; in put_semaphore()
|
D | tinjpage.c | 614 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/ |
D | sem.h | 51 short sem_op; member
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
D | sem.h | 51 short sem_op; member
|
/third_party/musl/ndk_musl_include/sys/ |
D | sem.h | 51 short sem_op; member
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
D | sem.h | 51 short sem_op; member
|
/third_party/musl/include/sys/ |
D | sem.h | 51 short sem_op; member
|
/third_party/musl/libc-test/src/api/ |
D | sys_sem.c | 28 F(short, sem_op) in f()
|
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/ |
D | page-poisoning.c | 531 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()
|