/src/tests/kernel/ |
t_semtimedop.c | 59 struct sembuf sops; local in function:ATF_TC_BODY 75 sops.sem_num = 0; 76 sops.sem_op = 1; 77 sops.sem_flg = 0; 84 if (semtimedop(semid, &sops, 1, &timeout) == -1) { 110 struct sembuf sops; local in function:ATF_TC_BODY 134 sops.sem_num = 0; 135 sops.sem_op = -1; 136 sops.sem_flg = 0; 141 if (semtimedop(semid, &sops, 1, &timeout) == -1) 171 struct sembuf sops; local in function:ATF_TC_BODY 230 struct sembuf sops; local in function:ATF_TC_BODY [all...] |
/src/sys/compat/netbsd32/ |
netbsd32_ipc.c | 216 struct netbsd32_sembuf *sops; local in function:netbsd32_do_semop 227 sops = small_sops; 229 sops = kmem_alloc(nsops * sizeof(*sops), KM_SLEEP); 231 SEM_PRINTF(("too many sops (max=%d, nsops=%zu)\n", 237 error = copyin(NETBSD32PTR64(usops), sops, nsops * sizeof(sops[0])); 240 NETBSD32PTR64(usops), &sops, nsops * sizeof(sops[0]))); 241 if (sops != small_sops [all...] |
/src/sys/kern/ |
sysv_sem.c | 814 do_semop1(struct lwp *l, int usemid, struct sembuf *sops, 830 SEM_PRINTF(("do_semop1(%d, %p, %zu)\n", usemid, sops, nsops)); 871 if (sops[i].sem_num >= semaptr->sem_nsems) { 890 sopptr = &sops[i]; 939 semaptr->_sem_base[sops[i].sem_num].semval -= 940 sops[i].sem_op; 1012 if ((sops[i].sem_flg & SEM_UNDO) == 0) 1014 adjval = sops[i].sem_op; 1018 sops[i].sem_num, -adjval); 1032 if ((sops[i].sem_flg & SEM_UNDO) == 0 1081 struct sembuf *sops; local in function:do_semop 1137 struct sembuf *sops = SCARG(uap, sops); local in function:sys_semtimedop 1153 struct sembuf *sops = SCARG(uap, sops); local in function:sys_semop [all...] |