Lines Matching defs:shmsegs
140 struct shmid_kernel *shmsegs; /* 64 bit version */
228 if ((shmsegs[i].u.shm_perm.mode & SHMSEG_ALLOCATED) &&
229 shmsegs[i].u.shm_perm._key == key)
243 shmseg = &shmsegs[segnum];
281 shmseg = &shmsegs[segnum];
334 shmsegptr = &shmsegs[IPCID_TO_IX(shmmap_s->shmid)];
610 shmseg = &shmsegs[segnum];
674 if (shmsegs[i].u.shm_perm.mode & SHMSEG_FREE)
683 shmseg = &shmsegs[segnum];
830 shmsegs[IPCID_TO_IX(shmmap_s->shmid)].u.shm_nattch++;
900 MALLOC(shmsegs, struct shmid_kernel *, s, M_SHM, M_WAITOK);
901 if (shmsegs == NULL) {
906 shmsegs[i].u.shm_perm.mode = SHMSEG_FREE;
907 shmsegs[i].u.shm_perm._seq = 0;
909 mac_sysvshm_label_init(&shmsegs[i]);
1038 if (shmsegs[cursor].u.shm_perm.mode & SHMSEG_ALLOCATED)
1047 shmid_dsp = &shmsegs[cursor]; /* default: 64 bit */