Lines Matching refs:sops
338 static int try_atomic_semop (struct sem_array * sma, struct sembuf * sops,
345 for (sop = sops; sop < sops + nsops; sop++) {
370 while (sop >= sops) {
392 while (sop >= sops) {
410 error = try_atomic_semop(sma, q->sops, q->nsops,
462 struct sembuf * sops = q->sops;
466 if (sops[i].sem_num == semnum
467 && (sops[i].sem_op < 0)
468 && !(sops[i].sem_flg & IPC_NOWAIT))
480 struct sembuf * sops = q->sops;
484 if (sops[i].sem_num == semnum
485 && (sops[i].sem_op == 0)
486 && !(sops[i].sem_flg & IPC_NOWAIT))
1118 struct sembuf* sops = fast_sops, *sop;
1132 sops = kmalloc(sizeof(*sops)*nsops,GFP_KERNEL);
1133 if(sops==NULL)
1136 if (copy_from_user (sops, tsops, nsops * sizeof(*tsops))) {
1154 for (sop = sops; sop < sops + nsops; sop++) {
1197 error = security_sem_semop(sma, sops, nsops, alter);
1201 error = try_atomic_semop (sma, sops, nsops, un, current->tgid);
1213 queue.sops = sops;
1272 if(sops != fast_sops)
1273 kfree(sops);