Home
last modified time | relevance | path

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

/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.h92 int nsems; /* for semaphores */ member