• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/

Lines Matching refs:space

191 	ipc_space_t		space,
226 * The expansion space is left in front of the header,
764 * I reserve for the trailer the largest space (MAX_TRAILER_SIZE)
866 * I reserve for the trailer the largest space (MAX_TRAILER_SIZE)
1042 * message header and the space are left untouched.
1064 * MACH_SEND_INVALID_DEST The space is dead.
1077 ipc_space_t space,
1101 is_write_lock(space);
1102 if (!space->is_active)
1114 entry = ipc_entry_lookup(space, dest_name);
1135 if ((entry = ipc_entry_lookup(space, notify)) == IE_NULL) {
1136 is_write_unlock(space);
1140 is_write_unlock(space);
1163 entry = ipc_entry_lookup(space, name);
1169 if (!ipc_right_copyin_check(space, name, entry, reply_type))
1190 kr = ipc_right_copyin(space, name, entry,
1210 kr = ipc_right_copyin(space, name, entry,
1225 kr = ipc_right_copyin(space, name, entry,
1251 kr = ipc_right_copyin_two(space, name, entry,
1258 ipc_entry_dealloc(space, name, entry);
1275 kr = ipc_right_copyin(space, name, entry,
1284 ipc_entry_dealloc(space, name, entry);
1309 entry = ipc_entry_lookup(space, dest_name);
1313 kr = ipc_right_copyin(space, dest_name, entry,
1322 ipc_entry_dealloc(space, dest_name, entry);
1364 dest_entry = ipc_entry_lookup(space, dest_name);
1368 reply_entry = ipc_entry_lookup(space, reply_name);
1375 if (!ipc_right_copyin_check(space, reply_name, reply_entry,
1379 kr = ipc_right_copyin(space, dest_name, dest_entry,
1387 kr = ipc_right_copyin(space, reply_name, reply_entry,
1396 ipc_entry_dealloc(space, reply_name, reply_entry);
1399 ipc_entry_dealloc(space, dest_name, dest_entry);
1406 * The space is still write-locked, and we need to
1420 is_write_unlock(space);
1439 is_write_unlock(space);
1443 is_write_unlock(space);
1476 ipc_space_t space,
1515 * Make an initial pass to determine kernal VM space requirements for
1590 * Allocate space in the pageable kernel ipc copy map for all the
1592 * space.
1633 kr = ipc_object_copyin(space, name, user_disp, &object);
1698 * is not being deallocated, then allocate space
1830 kr = ipc_object_copyin(space, port, user_disp, &object);
1929 ipc_space_t space,
1935 mr = ipc_kmsg_copyin_header(kmsg->ikm_header, space, notify);
1942 return( ipc_kmsg_copyin_body( kmsg, space, map) );
2095 * message header and the space are left untouched.
2114 * The space is dead.
2116 * No room in space for another name.
2126 ipc_space_t space,
2153 * as long as we hold the space locked. This isn't
2158 * because the space is write-locked status calls can't
2164 is_write_lock(space);
2169 if (!space->is_active) {
2170 printf("ipc_kmsg_copyout_header: dead space\n");
2171 is_write_unlock(space);
2177 notify_port = ipc_port_lookup_notify(space,
2181 is_write_unlock(space);
2188 ipc_right_reverse(space, (ipc_object_t) reply,
2214 is_write_unlock(space);
2222 kr = ipc_entry_get(space, &reply_name, &entry);
2229 /* space is locked */
2230 kr = ipc_entry_grow_table(space,
2233 /* space is unlocked */
2236 printf("ipc_kmsg_copyout_header: can't grow kernel ipc space\n");
2240 printf("ipc_kmsg_copyout_header: can't grow user ipc space\n");
2245 /* space is locked again; start over */
2267 ipc_entry_dealloc(space, reply_name, entry);
2268 is_write_unlock(space);
2275 is_write_lock(space);
2287 is_write_lock(space);
2298 /* space and reply port are locked and active */
2302 kr = ipc_right_copyout(space, reply_name, entry,
2311 is_write_unlock(space);
2315 * We only need to have the space locked
2320 is_read_lock(space);
2321 if (!space->is_active) {
2323 is_read_unlock(space);
2332 if ((entry = ipc_entry_lookup(space, notify)) == IE_NULL) {
2334 is_read_unlock(space);
2340 is_read_unlock(space);
2346 is_read_unlock(space);
2352 * At this point, the space is unlocked and the destination
2353 * port is locked. (Lock taken while space was locked.)
2357 * If the space holds receive rights for the destination,
2362 * exists somewhere else (another space, in transit)
2382 * Because the space lock is held across the copyout of reply
2384 * in or out of the space while the copyouts happen, so
2387 * space couldn't have had receive rights for dest at
2401 ipc_object_copyout_dest(space, (ipc_object_t) dest,
2445 * MACH_MSG_SUCCESS The space acquired the right
2447 * MACH_MSG_IPC_SPACE No room in space for the right,
2448 * or the space is dead. (Name is MACH_PORT_NULL.)
2455 ipc_space_t space,
2467 kr = ipc_object_copyout(space, object, msgt_name, TRUE, namep);
2498 * MACH_MSG_IPC_SPACE No room for port right in name space.
2499 * MACH_MSG_VM_SPACE No room for memory in address space.
2508 ipc_space_t space,
2593 mr |= ipc_kmsg_copyout_object(space,
2685 * visible size. There is already space allocated for
2779 * for those rights out to user-space.
2790 mr |= ipc_kmsg_copyout_object(space, object,
2913 ipc_space_t space,
2920 mr = ipc_kmsg_copyout_header(kmsg->ikm_header, space, notify);
2927 mr = ipc_kmsg_copyout_body(kmsg, space, map, slist);
2950 * MACH_MSG_IPC_SPACE No room for port right in name space.
2951 * MACH_MSG_VM_SPACE No room for memory in address space.
2959 ipc_space_t space,
2973 mr = (ipc_kmsg_copyout_object(space, dest, dest_type, &dest_name) |
2974 ipc_kmsg_copyout_object(space, reply, reply_type, &reply_name));
2981 mr |= ipc_kmsg_copyout_body(kmsg, space, map, slist);
2999 ipc_space_t space)
3018 ipc_object_copyout_dest(space, dest, dest_type, &dest_name);
3212 ipc_space_t space)
3229 ipc_object_copyout_dest(space, dest, dest_type, &dest_name);