Lines Matching refs:shmalloced

122 static int shm_last_free, shm_nused, shmalloced;  variable
214 for (i = 0; i < shmalloced; i++) in shm_find_segment_by_key()
234 if (segnum < 0 || segnum >= shmalloced) in shm_find_segment()
277 KASSERT(segnum >= 0 && segnum < shmalloced, in shm_delete_mapping()
278 ("segnum %d shmalloced %d", segnum, shmalloced)); in shm_delete_mapping()
528 td->td_retval[0] = shmalloced; in kern_shmctl_locked()
540 td->td_retval[0] = shmalloced; in kern_shmctl_locked()
670 KASSERT(segnum >= 0 && segnum < shmalloced, in shmget_existing()
671 ("segnum %d shmalloced %d", segnum, shmalloced)); in shmget_existing()
706 for (i = 0; i < shmalloced; i++) in shmget_allocate_segment()
709 if (i == shmalloced) in shmget_allocate_segment()
716 KASSERT(segnum >= 0 && segnum < shmalloced, in shmget_allocate_segment()
717 ("segnum %d shmalloced %d", segnum, shmalloced)); in shmget_allocate_segment()
828 IPCID_TO_IX(shmmap_s->shmid) < shmalloced, in shmfork_myhook()
830 IPCID_TO_IX(shmmap_s->shmid), shmalloced)); in shmfork_myhook()
864 if (shmalloced >= shminfo.shmmni) in shmrealloc()
869 for (i = 0; i < shmalloced; i++) in shmrealloc()
880 shmalloced = shminfo.shmmni; in shmrealloc()
945 shmalloced = shminfo.shmmni; in shminit()
946 shmsegs = malloc(shmalloced * sizeof(shmsegs[0]), M_SHM, in shminit()
948 for (i = 0; i < shmalloced; i++) { in shminit()
1011 for (i = 0; i < shmalloced; i++) { in shmunload()
1046 for (i = 0; i < shmalloced; i++) { in sysctl_shmsegs()
1254 for (i = 0; i < shmalloced; i++) { in shm_prison_cleanup()