Lines Matching refs:seminfo

193 	((struct sem_undo *)(((intptr_t)semu) + (ix) * seminfo.semusz))
198 struct seminfo seminfo = { variable
210 SYSCTL_INT(_kern_ipc, OID_AUTO, semmni, CTLFLAG_RDTUN, &seminfo.semmni, 0,
212 SYSCTL_INT(_kern_ipc, OID_AUTO, semmns, CTLFLAG_RDTUN, &seminfo.semmns, 0,
214 SYSCTL_INT(_kern_ipc, OID_AUTO, semmnu, CTLFLAG_RDTUN, &seminfo.semmnu, 0,
216 SYSCTL_INT(_kern_ipc, OID_AUTO, semmsl, CTLFLAG_RWTUN, &seminfo.semmsl, 0,
218 SYSCTL_INT(_kern_ipc, OID_AUTO, semopm, CTLFLAG_RDTUN, &seminfo.semopm, 0,
220 SYSCTL_INT(_kern_ipc, OID_AUTO, semume, CTLFLAG_RDTUN, &seminfo.semume, 0,
222 SYSCTL_INT(_kern_ipc, OID_AUTO, semusz, CTLFLAG_RD, &seminfo.semusz, 0,
224 SYSCTL_INT(_kern_ipc, OID_AUTO, semvmx, CTLFLAG_RWTUN, &seminfo.semvmx, 0,
226 SYSCTL_INT(_kern_ipc, OID_AUTO, semaem, CTLFLAG_RWTUN, &seminfo.semaem, 0,
279 sem = malloc(sizeof(struct sem) * seminfo.semmns, M_SEM, M_WAITOK); in seminit()
280 sema = malloc(sizeof(struct semid_kernel) * seminfo.semmni, M_SEM, in seminit()
282 sema_mtx = malloc(sizeof(struct mtx) * seminfo.semmni, M_SEM, in seminit()
284 seminfo.semusz = SEMUSZ(seminfo.semume); in seminit()
285 semu = malloc(seminfo.semmnu * seminfo.semusz, M_SEM, M_WAITOK); in seminit()
287 for (i = 0; i < seminfo.semmni; i++) { in seminit()
295 for (i = 0; i < seminfo.semmni; i++) in seminit()
298 for (i = 0; i < seminfo.semmnu; i++) { in seminit()
360 for (i = 0; i < seminfo.semmni; i++) in semunload()
366 for (i = 0; i < seminfo.semmni; i++) in semunload()
482 if (adjval > seminfo.semaem || adjval < -seminfo.semaem) in semundo_adjust()
500 if (adjval > seminfo.semaem || adjval < -seminfo.semaem) in semundo_adjust()
502 if (suptr->un_cnt != seminfo.semume) { in semundo_adjust()
557 KASSERT(semidx >= 0 && semidx < seminfo.semmni, in sem_remove()
579 for (i = 0; i < seminfo.semmni; i++) { in sem_remove()
587 for (i = 0; i < seminfo.semmni; i++) { in sem_remove()
721 if (semid < 0 || semid >= seminfo.semmni) in kern_semctl()
748 if (semidx < 0 || semidx >= seminfo.semmni) in kern_semctl()
900 if (arg->val < 0 || arg->val > seminfo.semvmx) { in kern_semctl()
930 if (usval > seminfo.semvmx) { in kern_semctl()
981 for (semid = 0; semid < seminfo.semmni; semid++) { in sys_semget()
988 if (semid < seminfo.semmni) { in sys_semget()
1016 if (nsems <= 0 || nsems > seminfo.semmsl) { in sys_semget()
1018 seminfo.semmsl)); in sys_semget()
1022 if (nsems > seminfo.semmns - semtot) { in sys_semget()
1025 nsems, seminfo.semmns - semtot)); in sys_semget()
1029 for (semid = 0; semid < seminfo.semmni; semid++) { in sys_semget()
1033 if (semid == seminfo.semmni) { in sys_semget()
1135 if (semid < 0 || semid >= seminfo.semmni) in kern_semop()
1158 else if (nsops > seminfo.semopm) { in kern_semop()
1159 DPRINTF(("too many sops (max=%d, nsops=%d)\n", seminfo.semopm, in kern_semop()
1268 seminfo.semvmx) { in kern_semop()
1537 for (i = 0; i < seminfo.semmni; i++) { in sysctl_sema()
1583 *sz = mi = seminfo.semmni; in kern_get_sema()
1772 for (i = 0; i < seminfo.semmni; i++) { in sem_prison_cleanup()