Searched refs:nsems (Results 1 – 2 of 2) sorted by relevance
510 static struct sem_array *sem_alloc(size_t nsems) in sem_alloc() argument514 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() local540 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 …]
92 int nsems; /* for semaphores */ member