Home
last modified time | relevance | path

Searched refs:semid (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/ipc/
H A Dsem.c154 int semid; /* semaphore set identifier */ member
1156 un->semid = -1; in freeary()
1234 static int semctl_stat(struct ipc_namespace *ns, int semid, in semctl_stat() argument
1245 sma = sem_obtain_object(ns, semid); in semctl_stat()
1251 sma = sem_obtain_object_check(ns, semid); in semctl_stat()
1308 static int semctl_info(struct ipc_namespace *ns, int semid, in semctl_info() argument
1343 static int semctl_setval(struct ipc_namespace *ns, int semid, int semnum, in semctl_setval() argument
1356 sma = sem_obtain_object_check(ns, semid); in semctl_setval()
1405 static int semctl_main(struct ipc_namespace *ns, int semid, int semnum, in semctl_main() argument
1416 sma = sem_obtain_object_check(ns, semid); in semctl_main()
[all …]
H A Dutil.h281 long compat_ksys_old_semctl(int semid, int semnum, int cmd, int arg);
/openbmc/linux/arch/arm/kernel/
H A Dsys_oabi-compat.c339 asmlinkage long sys_oabi_semtimedop(int semid, in sys_oabi_semtimedop() argument
376 err = __do_semtimedop(semid, sops, nsops, &ts, ns); in sys_oabi_semtimedop()
379 err = __do_semtimedop(semid, sops, nsops, NULL, ns); in sys_oabi_semtimedop()
385 asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops, in sys_oabi_semop() argument
388 return sys_oabi_semtimedop(semid, tsops, nsops, NULL); in sys_oabi_semop()
409 asmlinkage long sys_oabi_semtimedop(int semid, in sys_oabi_semtimedop() argument
417 asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops, in sys_oabi_semop() argument
/openbmc/linux/arch/arm/include/asm/
H A Dsyscalls.h32 asmlinkage long sys_oabi_semtimedop(int semid,
36 asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops,
/openbmc/openbmc-tools/adcapp/src/
H A DEINTR_wrappers.c97 int sigwrap_semop(int semid, struct sembuf *sops, size_t nsops) in sigwrap_semop() argument
101 if (semop(semid, sops, nsops) == 0) in sigwrap_semop()
110 int sigwrap_semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout)
115 return (sigwrap_semop(semid, sops, nsops));
121 if (semtimedop(semid, sops, nsops, &To.Timeout) == 0)
H A DEINTR_wrappers.h54 int sigwrap_semop(int semid, struct sembuf *sops, size_t nsops);
55 int sigwrap_semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeou…
/openbmc/openbmc-tools/pwmtachtool/src/
H A DEINTR_wrappers.h54 int sigwrap_semop(int semid, struct sembuf *sops, size_t nsops);
55 int sigwrap_semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeou…
H A DEINTR_wrappers.c97 int sigwrap_semop(int semid, struct sembuf *sops, size_t nsops) in sigwrap_semop() argument
101 if (semop(semid, sops, nsops) == 0) in sigwrap_semop()
/openbmc/linux/Documentation/arch/ia64/
H A Derr_inject.rst370 int semid[NR_CPUS];
385 if (semid[cpu]!=0)
393 if ((semid[cpu] = semget(key[cpu], 1, IPC_CREAT | IPC_EXCL)) == -1) {
400 vbprintf("semid[%d]=0x%lx, key[%d]=%lx\n",cpu,(u64)semid[cpu],cpu,
404 if (semctl(semid[cpu], 0, SETVAL, arg) == -1) {
418 semop(semid[cpu], &lock, 1);
429 semop(semid[cpu], &unlock, 1);
436 semctl(semid[cpu], 0, IPC_RMID);
/openbmc/linux/include/linux/
H A Dsyscalls.h716 asmlinkage long sys_semctl(int semid, int semnum, int cmd, unsigned long arg);
717 asmlinkage long sys_old_semctl(int semid, int semnum, int cmd, unsigned long arg);
718 asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops,
721 asmlinkage long sys_semtimedop_time32(int semid, struct sembuf __user *sops,
724 asmlinkage long sys_semop(int semid, struct sembuf __user *sops,
1255 long ksys_semtimedop(int semid, struct sembuf __user *tsops,
1259 long ksys_old_semctl(int semid, int semnum, int cmd, unsigned long arg);
1269 long compat_ksys_semtimedop(int semid, struct sembuf __user *tsems,
1272 long __do_semtimedop(int semid, struct sembuf *tsems, unsigned int nsops,
H A Dcompat.h749 asmlinkage long compat_sys_semctl(int semid, int semnum, int cmd, int arg);
/openbmc/qemu/linux-user/
H A Dsyscall.c770 safe_syscall4(int, semtimedop, int, semid, struct sembuf *, tsops, in safe_syscall3()
3906 static inline abi_long target_to_host_semarray(int semid, unsigned short **host_array, in target_to_host_semarray() argument
3917 ret = semctl(semid, 0, IPC_STAT, semun); in target_to_host_semarray()
3942 static inline abi_long host_to_target_semarray(int semid, abi_ulong target_addr, in host_to_target_semarray() argument
3953 ret = semctl(semid, 0, IPC_STAT, semun); in host_to_target_semarray()
3973 static inline abi_long do_semctl(int semid, int semnum, int cmd, in do_semctl() argument
3999 ret = get_errno(semctl(semid, semnum, cmd, arg)); in do_semctl()
4003 err = target_to_host_semarray(semid, &array, target_su.array); in do_semctl()
4007 ret = get_errno(semctl(semid, semnum, cmd, arg)); in do_semctl()
4008 err = host_to_target_semarray(semid, target_su.array, &array); in do_semctl()
[all …]