Searched refs:nsems (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/ipc/
H A Dsem.c195 " key semid perms nsems uid gid cuid cgid otime ctime\n", sem_init()
490 * @params: ptr to the structure that contains key, semflg and nsems
501 int nsems = params->u.nsems; newary() local
505 if (!nsems) newary()
507 if (ns->used_sems + nsems > ns->sc_semmns) newary()
510 size = sizeof(*sma) + nsems * sizeof(struct sem); newary()
529 for (i = 0; i < nsems; i++) { newary()
539 sma->sem_nsems = nsems; newary()
547 ns->used_sems += nsems; newary()
576 if (params->u.nsems > sma->sem_nsems) sem_more_checks()
582 SYSCALL_DEFINE3(semget, key_t, key, int, nsems, int, semflg) SYSCALL_DEFINE3()
594 if (nsems < 0 || nsems > ns->sc_semmsl) SYSCALL_DEFINE3()
599 sem_params.u.nsems = nsems; SYSCALL_DEFINE3()
1343 int err, nsems; semctl_main() local
1357 nsems = sma->sem_nsems; semctl_main()
1379 if (nsems > SEMMSL_FAST) { semctl_main()
1386 sem_io = ipc_alloc(sizeof(ushort)*nsems); semctl_main()
1404 if (copy_to_user(array, sem_io, nsems*sizeof(ushort))) semctl_main()
1419 if (nsems > SEMMSL_FAST) { semctl_main()
1420 sem_io = ipc_alloc(sizeof(ushort)*nsems); semctl_main()
1427 if (copy_from_user(sem_io, p, nsems*sizeof(ushort))) { semctl_main()
1433 for (i = 0; i < nsems; i++) { semctl_main()
1447 for (i = 0; i < nsems; i++) semctl_main()
1452 for (i = 0; i < nsems; i++) semctl_main()
1464 if (semnum < 0 || semnum >= nsems) semctl_main()
1496 ipc_free(sem_io, sizeof(ushort)*nsems); semctl_main()
1693 int nsems, error; find_alloc_undo() local
1714 nsems = sma->sem_nsems; find_alloc_undo()
1723 new = kzalloc(sizeof(struct sem_undo) + sizeof(short)*nsems, GFP_KERNEL); find_alloc_undo()
H A Dutil.h66 int nsems; /* for semaphores */ member in union:ipc_params::__anon14766
/linux-4.4.14/include/linux/
H A Dcompat.h328 unsigned nsems, const struct compat_timespec __user *timeout);
H A Dsyscalls.h664 asmlinkage long sys_semget(key_t key, int nsems, int semflg);

Completed in 75 milliseconds