Lines Matching defs:sops
810 struct sembuf *sops;
833 sops = small_sops;
835 sops = kmem_alloc(nsops * sizeof(*sops), KM_SLEEP);
837 SEM_PRINTF(("too many sops (max=%d, nsops=%zu)\n",
842 error = copyin(usops, sops, nsops * sizeof(sops[0]));
845 usops, &sops, nsops * sizeof(sops[0])));
846 if (sops != small_sops)
847 kmem_free(sops, nsops * sizeof(*sops));
889 if (sops[i].sem_num >= semaptr->sem_nsems) {
908 sopptr = &sops[i];
957 semaptr->_sem_base[sops[i].sem_num].semval -=
958 sops[i].sem_op;
1030 if ((sops[i].sem_flg & SEM_UNDO) == 0)
1032 adjval = sops[i].sem_op;
1036 sops[i].sem_num, -adjval);
1050 if ((sops[i].sem_flg & SEM_UNDO) == 0)
1052 adjval = sops[i].sem_op;
1056 sops[i].sem_num, adjval) != 0)
1061 semaptr->_sem_base[sops[i].sem_num].semval -=
1062 sops[i].sem_op;
1066 } /* loop through the sops */
1071 sopptr = &sops[i];
1090 if (sops != small_sops)
1091 kmem_free(sops, nsops * sizeof(*sops));
1101 syscallarg(struct sembuf *) sops;
1106 struct sembuf *sops = SCARG(uap, sops);
1110 return do_semop(l, semid, sops, nsops, utimeout, retval);
1118 syscallarg(struct sembuf *) sops;
1122 struct sembuf *sops = SCARG(uap, sops);
1125 return do_semop(l, semid, sops, nsops, NULL, retval);