Home
last modified time | relevance | path

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

/ipc/
Dsem.c488 static struct sem_array *sem_alloc(size_t nsems) in sem_alloc() argument
492 if (nsems > (INT_MAX - sizeof(*sma)) / sizeof(sma->sems[0])) in sem_alloc()
495 sma = kvzalloc(struct_size(sma, sems, nsems), GFP_KERNEL); in sem_alloc()
514 int nsems = params->u.nsems; in newary() local
518 if (!nsems) in newary()
520 if (ns->used_sems + nsems > ns->sc_semmns) in newary()
523 sma = sem_alloc(nsems); in newary()
537 for (i = 0; i < nsems; i++) { in newary()
548 sma->sem_nsems = nsems; in newary()
557 ns->used_sems += nsems; in newary()
[all …]
Dutil.h92 int nsems; /* for semaphores */ member