Lines Matching defs:shm_handle

150 struct shm_handle {
153 struct shm_handle *shm_handle_next; /* next chunk */
263 struct shm_handle *shm_handle, *shm_handle_next;
266 for (shm_handle = CAST_DOWN(void *,shmseg->u.shm_internal); /* tunnel */
267 shm_handle != NULL;
268 shm_handle = shm_handle_next) {
269 shm_handle_next = shm_handle->shm_handle_next;
270 mach_memory_entry_port_release(shm_handle->shm_object);
271 FREE((caddr_t) shm_handle, M_SHM);
367 struct shm_handle *shm_handle;
475 for (shm_handle = CAST_DOWN(void *, shmseg->u.shm_internal);/* tunnel */
476 shm_handle != NULL;
477 shm_handle = shm_handle->shm_handle_next) {
482 shm_handle->shm_handle_size, /* segment size */
485 shm_handle->shm_object,
494 mapped_size += shm_handle->shm_handle_size;
495 attach_va = attach_va + shm_handle->shm_handle_size;
706 struct shm_handle *shm_handle;
710 struct shm_handle *shm_handle_next, **shm_handle_next_p;
756 MALLOC(shm_handle, struct shm_handle *, sizeof(struct shm_handle), M_SHM, M_WAITOK);
757 if (shm_handle == NULL) {
763 shm_handle->shm_object = mem_object;
764 shm_handle->shm_handle_size = size;
765 shm_handle->shm_handle_next = NULL;
767 shmseg->u.shm_internal = CAST_USER_ADDR_T(shm_handle);/* tunnel */
769 *shm_handle_next_p = shm_handle;
771 shm_handle_next_p = &shm_handle->shm_handle_next;
804 for (shm_handle = CAST_DOWN(void *,shmseg->u.shm_internal); /* tunnel */
805 shm_handle != NULL;
806 shm_handle = shm_handle_next) {
807 shm_handle_next = shm_handle->shm_handle_next;
808 mach_memory_entry_port_release(shm_handle->shm_object);
809 FREE((caddr_t) shm_handle, M_SHM);