/linux-4.4.14/ipc/ |
H A D | sem.c | 113 int nsops; /* number of operations */ member in struct:sem_queue 299 int nsops) sem_lock() 303 if (nsops != 1) { sem_lock() 399 int id, struct sembuf *sops, int nsops, int *locknum) sem_obtain_lock() 409 *locknum = sem_lock(sma, sops, nsops); sem_obtain_lock() 615 int result, sem_op, nsops, pid; perform_atomic_semop() local 622 nsops = q->nsops; perform_atomic_semop() 625 for (sop = sops; sop < sops + nsops; sop++) { perform_atomic_semop() 734 if (q->nsops > 1) unlink_queue() 755 if (q->nsops > 1) check_restart() 825 * @nsops: number of operations 833 int nsops, struct list_head *pt) do_smart_wakeup_zero() 841 for (i = 0; i < nsops; i++) { do_smart_wakeup_zero() 930 do_smart_wakeup_zero(sma, q->sops, q->nsops, pt); update_queue() 963 * @nsops: number of operations 973 static void do_smart_update(struct sem_array *sma, struct sembuf *sops, int nsops, do_smart_update() argument 978 otime |= do_smart_wakeup_zero(sma, sops, nsops, pt); do_smart_update() 1001 for (i = 0; i < nsops; i++) { do_smart_update() 1793 unsigned, nsops, const struct timespec __user *, timeout) SYSCALL_DEFINE4() 1808 if (nsops < 1 || semid < 0) SYSCALL_DEFINE4() 1810 if (nsops > ns->sc_semopm) SYSCALL_DEFINE4() 1812 if (nsops > SEMOPM_FAST) { SYSCALL_DEFINE4() 1813 sops = kmalloc(sizeof(*sops)*nsops, GFP_KERNEL); SYSCALL_DEFINE4() 1817 if (copy_from_user(sops, tsops, nsops * sizeof(*tsops))) { SYSCALL_DEFINE4() 1835 for (sop = sops; sop < sops + nsops; sop++) { SYSCALL_DEFINE4() 1873 error = security_sem_semop(sma, sops, nsops, alter); SYSCALL_DEFINE4() 1878 locknum = sem_lock(sma, sops, nsops); SYSCALL_DEFINE4() 1882 * If nsops == 1 and there is no contention for sem_perm.lock, then SYSCALL_DEFINE4() 1900 queue.nsops = nsops; SYSCALL_DEFINE4() 1911 do_smart_update(sma, sops, nsops, 1, &tasks); SYSCALL_DEFINE4() 1922 if (nsops == 1) { SYSCALL_DEFINE4() 1979 sma = sem_obtain_lock(ns, semid, sops, nsops, &locknum); SYSCALL_DEFINE4() 2028 unsigned, nsops) SYSCALL_DEFINE3() 2030 return sys_semtimedop(semid, tsops, nsops, NULL); SYSCALL_DEFINE3() 298 sem_lock(struct sem_array *sma, struct sembuf *sops, int nsops) sem_lock() argument 398 sem_obtain_lock(struct ipc_namespace *ns, int id, struct sembuf *sops, int nsops, int *locknum) sem_obtain_lock() argument 832 do_smart_wakeup_zero(struct sem_array *sma, struct sembuf *sops, int nsops, struct list_head *pt) do_smart_wakeup_zero() argument
|
H A D | compat.c | 750 unsigned, nsops, COMPAT_SYSCALL_DEFINE4() 756 return sys_semtimedop(semid, tsems, nsops, ts64); COMPAT_SYSCALL_DEFINE4()
|
/linux-4.4.14/arch/arm/kernel/ |
H A D | sys_oabi-compat.c | 310 unsigned nsops, sys_oabi_semtimedop() 318 if (nsops < 1 || nsops > SEMOPM) sys_oabi_semtimedop() 320 sops = kmalloc(sizeof(*sops) * nsops, GFP_KERNEL); sys_oabi_semtimedop() 324 for (i = 0; i < nsops; i++) { sys_oabi_semtimedop() 340 err = sys_semtimedop(semid, sops, nsops, timeout); sys_oabi_semtimedop() 348 unsigned nsops) sys_oabi_semop() 350 return sys_oabi_semtimedop(semid, tsops, nsops, NULL); sys_oabi_semop() 308 sys_oabi_semtimedop(int semid, struct oabi_sembuf __user *tsops, unsigned nsops, const struct timespec __user *timeout) sys_oabi_semtimedop() argument 347 sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops, unsigned nsops) sys_oabi_semop() argument
|
/linux-4.4.14/security/ |
H A D | security.c | 1110 unsigned nsops, int alter) security_sem_semop() 1112 return call_int_hook(sem_semop, 0, sma, sops, nsops, alter); security_sem_semop() 1109 security_sem_semop(struct sem_array *sma, struct sembuf *sops, unsigned nsops, int alter) security_sem_semop() argument
|
/linux-4.4.14/include/linux/ |
H A D | syscalls.h | 666 unsigned nsops); 669 unsigned nsops,
|
H A D | security.h | 346 unsigned nsops, int alter); 1051 struct sembuf *sops, unsigned nsops, security_sem_semop() 1050 security_sem_semop(struct sem_array *sma, struct sembuf *sops, unsigned nsops, int alter) security_sem_semop() argument
|
H A D | lsm_hooks.h | 1118 * @nsops contains the number of operations to perform. 1505 unsigned nsops, int alter);
|
/linux-4.4.14/security/smack/ |
H A D | smack_lsm.c | 3136 * @nsops: unused 3144 unsigned nsops, int alter) smack_sem_semop() 3143 smack_sem_semop(struct sem_array *sma, struct sembuf *sops, unsigned nsops, int alter) smack_sem_semop() argument
|
/linux-4.4.14/security/selinux/ |
H A D | hooks.c | 5520 struct sembuf *sops, unsigned nsops, int alter) selinux_sem_semop() 5519 selinux_sem_semop(struct sem_array *sma, struct sembuf *sops, unsigned nsops, int alter) selinux_sem_semop() argument
|