Lines Matching refs:nsops
349 int nsops, struct sem_undo *un, int pid)
355 for (sop = sops; sop < sops + nsops; sop++) {
459 if (q->nsops == 1)
488 if (q->nsops > 1)
517 BUG_ON(h->nsops != 1);
584 error = try_atomic_semop(sma, q->sops, q->nsops,
608 * do_smart_update(sma, sops, nsops, otime, pt) - optimized update_queue
611 * @nsops: number of operations
621 static void do_smart_update(struct sem_array *sma, struct sembuf *sops, int nsops,
632 for (i = 0; i < nsops; i++) {
662 int nsops = q->nsops;
664 for (i = 0; i < nsops; i++)
681 int nsops = q->nsops;
683 for (i = 0; i < nsops; i++)
1289 unsigned, nsops, const struct timespec __user *, timeout)
1304 if (nsops < 1 || semid < 0)
1306 if (nsops > ns->sc_semopm)
1308 if(nsops > SEMOPM_FAST) {
1309 sops = kmalloc(sizeof(*sops)*nsops,GFP_KERNEL);
1313 if (copy_from_user (sops, tsops, nsops * sizeof(*tsops))) {
1331 for (sop = sops; sop < sops + nsops; sop++) {
1392 error = security_sem_semop(sma, sops, nsops, alter);
1396 error = try_atomic_semop (sma, sops, nsops, un, task_tgid_vnr(current));
1399 do_smart_update(sma, sops, nsops, 1, &tasks);
1409 queue.nsops = nsops;
1418 if (nsops == 1) {
1490 unsigned, nsops)
1492 return sys_semtimedop(semid, tsops, nsops, NULL);