Home
last modified time | relevance | path

Searched refs:sops (Results 1 – 10 of 10) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/
Dsemctl01.c28 static struct sembuf sops; variable
80 sops.sem_num = 4; in child_cnt()
81 sops.sem_flg = 0; in child_cnt()
89 if (semop(sem_id, &sops, 1) != -1) in child_cnt()
97 sops.sem_num = 4; in cnt_setup()
98 sops.sem_flg = 0; in cnt_setup()
103 sops.sem_op = 1; in cnt_setup()
104 SAFE_SEMOP(sem_id, &sops, 1); in cnt_setup()
107 sops.sem_op = opval; in cnt_setup()
129 sops.sem_num = 2; in child_pid()
[all …]
/third_party/musl/libc-test/src/functional/
Dipc_sem.c38 struct sembuf sops; in inc() local
72 sops.sem_num = 0; in inc()
73 sops.sem_op = 1; in inc()
74 sops.sem_flg = 0; in inc()
75 T(semop(semid, &sops, 1)); in inc()
90 struct sembuf sops; in dec() local
96 sops.sem_num = 0; in dec()
97 sops.sem_op = -1; in dec()
98 sops.sem_flg = 0; in dec()
99 T(semop(semid, &sops, 1)); in dec()
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/
Dsemop.h10 static inline int sys_semtimedop(int semid, struct sembuf *sops, size_t nsops, in sys_semtimedop() argument
13 return tst_syscall(__NR_semtimedop, semid, sops, nsops, timeout); in sys_semtimedop()
16 static inline int sys_semtimedop_time64(int semid, struct sembuf *sops, in sys_semtimedop_time64() argument
19 return tst_syscall(__NR_semtimedop_time64, semid, sops, nsops, timeout); in sys_semtimedop_time64()
35 struct sembuf *sops, size_t nsops, void *timeout) in call_semop() argument
38 return tv->semop(semid, sops, nsops); in call_semop()
40 return tv->semtimedop(semid, sops, nsops, timeout); in call_semop()
Dsemop01.c23 static struct sembuf sops[PSEMS]; variable
40 TEST(call_semop(tv, sem_id, sops, NSEMS, tst_ts_get(tc[n].to))); in run()
85 sops[i].sem_num = i; in setup()
86 sops[i].sem_op = i * i; in setup()
87 sops[i].sem_flg = SEM_UNDO; in setup()
/third_party/ltp/include/
Dtst_safe_sysv_ipc.h68 int safe_semop(const char *file, const int lineno, int semid, struct sembuf *sops,
70 #define SAFE_SEMOP(semid, sops, nsops) \ argument
71 safe_semop(__FILE__, __LINE__, (semid), (sops), (nsops))
Dtime64_variants.h53 int (*semop)(int semid, struct sembuf *sops, size_t nsops);
54 int (*semtimedop)(int semid, struct sembuf *sops, size_t nsops, void *timeout);
/third_party/ltp/lib/
Dtst_safe_sysv_ipc.c257 int safe_semop(const char *file, const int lineno, int semid, struct sembuf *sops, in safe_semop() argument
262 rval = semop(semid, sops, nsops); in safe_semop()
265 "semop(%d, %p, %zu) failed", semid, sops, nsops); in safe_semop()
269 semid, sops, nsops, rval); in safe_semop()
/third_party/alsa-lib/modules/mixer/simple/
Dhda.c43 .sops = &simple_hda_ops,
Dac97.c42 .sops = &simple_ac97_ops,
Dsbase.h40 struct sm_elem_ops *sops; member