Home
last modified time | relevance | path

Searched refs:nsems (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/ipc/
Dsem.c510 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()
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()
559 for (i = 0; i < nsems; i++) { in newary()
570 sma->sem_nsems = nsems; in newary()
579 ns->used_sems += nsems; in newary()
[all …]
Dutil.h90 int nsems; /* for semaphores */ member
/linux-6.6.21/include/linux/
Dsyscalls.h715 asmlinkage long sys_semget(key_t key, int nsems, int semflg);
1252 long ksys_semget(key_t key, int nsems, int semflg);