/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/ |
H A D | semctl01.c | 28 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 in child_pid() [all...] |
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | semndk.cpp | 32 struct sembuf sops = {PARAM_0};
in Semop() local 34 sops.sem_num = PARAM_0;
in Semop() 35 sops.sem_op = MINUSONE;
in Semop() 36 sops.sem_flg = PARAM_0;
in Semop() 38 int semval = semop(semid, &sops, ONEVAL);
in Semop() 47 struct sembuf sops = {PARAM_0};
in Semtimedop() local 49 sops.sem_num = PARAM_0;
in Semtimedop() 50 sops.sem_op = MINUSONE;
in Semtimedop() 51 sops.sem_flg = PARAM_0;
in Semtimedop() 53 int semval = semtimedop(semid, &sops, ONEVA in Semtimedop() [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | ipc_sem.c | 38 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, in dec() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/platform/arm/ |
H A D | juno_opp.c | 43 struct scpi_ops *sops; in init_juno_opps_from_scpi() local 47 sops = get_scpi_ops(); in init_juno_opps_from_scpi() 48 if (NULL == sops) { in init_juno_opps_from_scpi() 54 sinfo = sops->dvfs_get_info(2); in init_juno_opps_from_scpi() 98 struct scpi_ops *sops; in term_opps() local 102 sops = get_scpi_ops(); in term_opps() 103 if (NULL == sops) { in term_opps() 109 sinfo = sops->dvfs_get_info(2); in term_opps()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/ |
H A D | semop.h | 10 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() 38 return tv->semop(semid, sops, nsops); in call_semop() 40 return tv->semtimedop(semid, sops, nsops, timeout); in call_semop() 34 call_semop(struct time64_variants *tv, int semid, struct sembuf *sops, size_t nsops, void *timeout) call_semop() argument
|
H A D | semop01.c | 23 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()
|
/device/soc/rockchip/common/sdk_linux/ipc/ |
H A D | sem.c | 136 struct sembuf *sops; /* array of pending operations */
member 139 bool alter; /* does *sops alter the array? */
140 bool dupsop; /* sops on more than one sem_num */
296 curr = &sma->sems[q->sops[0].sem_num];
in unmerge_queues() 386 static inline int sem_lock(struct sem_array *sma, struct sembuf *sops, int nsops)
in sem_lock() argument 407 idx = array_index_nospec(sops->sem_num, sma->sem_nsems);
in sem_lock() 424 return sops->sem_num;
in sem_lock() 445 return sops->sem_num;
in sem_lock() 655 struct sembuf *sops;
in perform_atomic_semop_slow() local 658 sops in perform_atomic_semop_slow() 733 struct sembuf *sops; perform_atomic_semop() local 912 do_smart_wakeup_zero(struct sem_array *sma, struct sembuf *sops, int nsops, struct wake_q_head *wake_q) do_smart_wakeup_zero() argument 1026 set_semotime(struct sem_array *sma, struct sembuf *sops) set_semotime() argument 1049 do_smart_update(struct sem_array *sma, struct sembuf *sops, int nsops, int otime, struct wake_q_head *wake_q) do_smart_update() argument 2034 struct sembuf *sops = fast_sops, *sop; do_semtimedop() local [all...] |
/third_party/ltp/include/ |
H A D | tst_safe_sysv_ipc.h | 68 int safe_semop(const char *file, const int lineno, int semid, struct sembuf *sops, 70 #define SAFE_SEMOP(semid, sops, nsops) \ 71 safe_semop(__FILE__, __LINE__, (semid), (sops), (nsops))
|
H A D | time64_variants.h | 53 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/ |
H A D | tst_safe_sysv_ipc.c | 266 int safe_semop(const char *file, const int lineno, int semid, struct sembuf *sops, in safe_semop() argument 271 rval = semop(semid, sops, nsops); in safe_semop() 274 "semop(%d, %p, %zu) failed", semid, sops, nsops); in safe_semop() 278 semid, sops, nsops, rval); in safe_semop()
|
/third_party/alsa-lib/modules/mixer/simple/ |
H A D | sbase.h | 40 struct sm_elem_ops *sops; member
|
H A D | ac97.c | 42 .sops = &simple_ac97_ops,
|
H A D | hda.c | 43 .sops = &simple_hda_ops,
|
/third_party/rust/crates/libc/src/unix/haiku/ |
H A D | mod.rs | 1872 pub fn semop(semid: ::c_int, sops: *mut sembuf, nsops: ::size_t) -> ::c_int; in semop()
|
/third_party/rust/crates/libc/src/fuchsia/ |
H A D | mod.rs | 3961 pub fn semop(semid: ::c_int, sops: *mut ::sembuf, nsops: ::size_t) -> ::c_int; in semop()
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/ |
H A D | mod.rs | 3920 pub fn semop(semid: ::c_int, sops: *mut ::sembuf, nsops: ::size_t) -> ::c_int; in semop()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/ |
H A D | mod.rs | 4094 pub fn semop(semid: ::c_int, sops: *mut sembuf, nsops: ::size_t) -> ::c_int; in semop()
|
/third_party/rust/crates/libc/src/unix/bsd/apple/ |
H A D | mod.rs | 5148 pub fn semop(semid: ::c_int, sops: *mut sembuf, nsops: ::size_t) -> ::c_int; in semop()
|