Searched refs:nsems (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/ipc/ |
H A D | sem.c | 270 " key semid perms nsems uid gid cuid cgid otime ctime\n", in sem_init() 507 static struct sem_array *sem_alloc(size_t nsems) in sem_alloc() argument 511 if (nsems > (INT_MAX - sizeof(*sma)) / sizeof(sma->sems[0])) in sem_alloc() 514 sma = kvzalloc(struct_size(sma, sems, nsems), GFP_KERNEL_ACCOUNT); in sem_alloc() 524 * @params: ptr to the structure that contains key, semflg and nsems 533 int nsems = params->u.nsems; in newary() local 537 if (!nsems) in newary() 539 if (ns->used_sems + nsems > ns->sc_semmns) in newary() 542 sma = sem_alloc(nsems); in newary() 599 ksys_semget(key_t key, int nsems, int semflg) ksys_semget() argument 1408 int err, nsems; semctl_main() local 1910 int nsems, error; find_alloc_undo() local [all...] |
H A D | util.h | 92 int nsems; /* for semaphores */ member
|
/kernel/linux/linux-6.6/ipc/ |
H A D | sem.c | 272 " key semid perms nsems uid gid cuid cgid otime ctime\n", in sem_init() 510 static struct sem_array *sem_alloc(size_t nsems) in sem_alloc() argument 514 if (nsems > (INT_MAX - sizeof(*sma)) / sizeof(sma->sems[0])) in sem_alloc() 517 sma = kvzalloc(struct_size(sma, sems, nsems), GFP_KERNEL_ACCOUNT); in sem_alloc() 527 * @params: ptr to the structure that contains key, semflg and nsems 536 int nsems = params->u.nsems; in newary() local 540 if (!nsems) in newary() 542 if (ns->used_sems + nsems > ns->sc_semmns) in newary() 545 sma = sem_alloc(nsems); in newary() 602 ksys_semget(key_t key, int nsems, int semflg) ksys_semget() argument 1410 int err, nsems; semctl_main() local 1911 int nsems, error; find_alloc_undo() local [all...] |
H A D | util.h | 90 int nsems; /* for semaphores */ member
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | syscalls.h | 808 asmlinkage long sys_semget(key_t key, int nsems, int semflg); 1356 long ksys_semget(key_t key, int nsems, int semflg);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | syscalls.h | 715 asmlinkage long sys_semget(key_t key, int nsems, int semflg); 1252 long ksys_semget(key_t key, int nsems, int semflg);
|
Completed in 9 milliseconds