Lines Matching defs:shmmap_h
189 struct shmmap_head *shmmap_h;
193 shmmap_h = (struct shmmap_head *)p->p_vmspace->vm_shm;
194 if (shmmap_h == NULL)
197 for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg;
202 if (i == shmmap_h->shmseg)
218 struct shmmap_head *shmmap_h;
225 shmmap_h = (struct shmmap_head *)p->p_vmspace->vm_shm;
226 if (shmmap_h == NULL) {
229 shmmap_h = malloc(size, M_SHM, M_WAITOK | M_CANFAIL);
230 if (shmmap_h == NULL)
232 shmmap_h->shmseg = shminfo.shmseg;
233 for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg;
236 p->p_vmspace->vm_shm = (caddr_t)shmmap_h;
245 for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg; i++) {
250 if (i >= shmmap_h->shmseg)
491 struct shmmap_head *shmmap_h;
502 shmmap_h = (struct shmmap_head *)vm1->vm_shm;
503 size = sizeof(int) + shmmap_h->shmseg * sizeof(struct shmmap_state);
506 for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg;
517 struct shmmap_head *shmmap_h;
522 shmmap_h = (struct shmmap_head *)vm->vm_shm;
523 if (shmmap_h == NULL)
525 size = sizeof(int) + shmmap_h->shmseg * sizeof(struct shmmap_state);
526 for (i = 0, shmmap_s = shmmap_h->state; i < shmmap_h->shmseg;