• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/osfmk/ipc/

Lines Matching refs:space

214  *		Retrieves a list of the rights present in the space,
218 * are an accurate snapshot of the space.
223 * KERN_INVALID_TASK The space is null.
224 * KERN_INVALID_TASK The space is dead.
230 ipc_space_t space,
254 if (space == IS_NULL)
263 is_read_lock(space);
264 if (!is_active(space)) {
265 is_read_unlock(space);
273 /* upper bound on number of names in the space */
274 bound = space->is_table_size;
282 is_read_unlock(space);
331 /* space is read-locked and active */
339 table = space->is_table;
340 tsize = space->is_table_size;
355 is_read_unlock(space);
423 * Retrieves the type of a right in the space.
438 * KERN_INVALID_TASK The space is null.
439 * KERN_INVALID_TASK The space is dead.
445 ipc_space_t space,
453 if (space == IS_NULL)
464 kr = ipc_right_lookup_write(space, name, &entry);
468 /* space is write-locked and active */
469 kr = ipc_right_info(space, name, entry, typep, &urefs);
470 /* space is unlocked */
489 * KERN_INVALID_TASK The space is null.
490 * KERN_INVALID_TASK The space is dead.
502 __unused ipc_space_t space,
513 * Allocates a right in a space, using a specific name
533 * KERN_INVALID_TASK The space is null.
534 * KERN_INVALID_TASK The space is dead.
547 ipc_space_t space,
559 kr = mach_port_allocate_full (space, right, MACH_PORT_NULL,
567 * Allocates a right in a space. Like mach_port_allocate_name,
569 * The name may be any legal name in the space that doesn't
575 * KERN_INVALID_TASK The space is null.
576 * KERN_INVALID_TASK The space is dead.
579 * KERN_NO_SPACE No room in space for another right.
584 ipc_space_t space,
591 kr = mach_port_allocate_full (space, right, MACH_PORT_NULL,
599 * Allocates a right, with qos options, in a space. Like
602 * in the space that doesn't currently denote a right.
607 * KERN_INVALID_TASK The space is null.
608 * KERN_INVALID_TASK The space is dead.
612 * KERN_NO_SPACE No room in space for another right.
617 ipc_space_t space,
626 kr = mach_port_allocate_full (space, right, MACH_PORT_NULL,
634 * Allocates a right in a space. Supports all of the
637 * The name may be any legal name in the space that doesn't
643 * KERN_INVALID_TASK The space is null.
644 * KERN_INVALID_TASK The space is dead.
647 * KERN_NO_SPACE No room in space for another right.
652 ipc_space_t space,
661 if (space == IS_NULL)
693 kr = ipc_port_alloc_name(space, *namep, &port);
695 kr = ipc_port_alloc(space, namep, &port);
712 kr = ipc_pset_alloc_name(space, *namep, &pset);
714 kr = ipc_pset_alloc(space, namep, &pset);
721 kr = ipc_object_alloc_dead(space, namep);
736 * in a space. The destruction of a receive right
744 * KERN_INVALID_TASK The space is null.
745 * KERN_INVALID_TASK The space is dead.
751 ipc_space_t space,
757 if (space == IS_NULL)
763 kr = ipc_right_lookup_write(space, name, &entry);
766 /* space is write-locked and active */
768 kr = ipc_right_destroy(space, name, entry, TRUE, 0); /* unlocks space */
784 * KERN_INVALID_TASK The space is null.
785 * KERN_INVALID_TASK The space is dead.
792 ipc_space_t space,
798 if (space == IS_NULL)
804 kr = ipc_right_lookup_write(space, name, &entry);
807 /* space is write-locked */
809 kr = ipc_right_dealloc(space, name, entry); /* unlocks space */
824 * KERN_INVALID_TASK The space is null.
825 * KERN_INVALID_TASK The space is dead.
832 ipc_space_t space,
842 if (space == IS_NULL)
857 kr = ipc_right_lookup_write(space, name, &entry);
861 /* space is write-locked and active */
862 kr = ipc_right_info(space, name, entry, &type, &urefs);
863 /* space is unlocked */
905 * KERN_INVALID_TASK The space is null.
906 * KERN_INVALID_TASK The space is dead.
916 ipc_space_t space,
924 if (space == IS_NULL)
937 kr = ipc_right_lookup_write(space, name, &entry);
940 /* space is write-locked and active */
942 kr = ipc_right_delta(space, name, entry, right, delta); /* unlocks */
978 * KERN_INVALID_TASK The space is null or dead.
987 ipc_space_t space,
1001 if (space == IS_NULL)
1017 kr = ipc_port_translate_receive(space, name, &port);
1044 * KERN_INVALID_TASK The space is null.
1045 * KERN_INVALID_TASK The space is dead.
1052 ipc_space_t space,
1059 if (space == IS_NULL)
1065 kr = ipc_port_translate_receive(space, name, &port);
1084 * KERN_INVALID_TASK The space is null.
1085 * KERN_INVALID_TASK The space is dead.
1092 ipc_space_t space,
1099 if (space == IS_NULL)
1105 kr = ipc_port_translate_receive(space, name, &port);
1124 * KERN_INVALID_TASK The space is null.
1125 * KERN_INVALID_TASK The space is dead.
1132 ipc_space_t space,
1139 if (space == IS_NULL)
1145 kr = ipc_port_translate_receive(space, name, &port);
1170 * KERN_INVALID_TASK The space is null.
1171 * KERN_INVALID_TASK The space is dead.
1178 ipc_space_t space,
1185 if (space == IS_NULL)
1191 kr = ipc_port_translate_receive(space, name, &port);
1215 * Returns the space's name for each receive right member.
1220 * KERN_INVALID_TASK The space is null.
1221 * KERN_INVALID_TASK The space is dead.
1229 ipc_space_t space,
1235 ipc_entry_num_t maxnames; /* space for this many members */
1242 if (space == IS_NULL)
1265 kr = ipc_object_translate(space, name, MACH_PORT_RIGHT_PORT_SET, &psobj);
1347 * KERN_INVALID_TASK The space is null.
1348 * KERN_INVALID_TASK The space is dead.
1359 ipc_space_t space,
1371 if (space == IS_NULL)
1386 kr = ipc_right_lookup_read(space, member, &entry);
1389 /* space is read-locked and active */
1392 is_read_unlock(space);
1403 entry = ipc_entry_lookup(space, after);
1405 is_read_unlock(space);
1411 is_read_unlock(space);
1428 is_read_unlock(space);
1469 * KERN_INVALID_TASK The space is null.
1470 * KERN_INVALID_TASK The space is dead.
1487 ipc_space_t space,
1496 if (space == IS_NULL)
1510 kr = ipc_right_lookup_write(space, name, &entry);
1517 is_write_unlock(space);
1521 is_write_unlock(space);
1536 kr = ipc_port_translate_receive(space, name, &port);
1554 kr = ipc_port_translate_receive(space, name, &port);
1570 kr = ipc_right_request_alloc(space, name, sync != 0,
1587 kr = ipc_right_request_alloc(space, name, sync != 0,
1603 * Inserts a right into a space, as if the space
1610 * KERN_INVALID_TASK The space is null.
1611 * KERN_INVALID_TASK The space is dead.
1623 ipc_space_t space,
1628 if (space == IS_NULL)
1638 return ipc_object_copyout_name(space, (ipc_object_t) poly,
1645 * Extracts a right from a space, as if the space
1651 * KERN_INVALID_TASK The space is null.
1652 * KERN_INVALID_TASK The space is dead.
1660 ipc_space_t space,
1668 if (space == IS_NULL)
1683 kr = ipc_object_copyin(space, name, msgt_name, (ipc_object_t *) poly);
1743 ipc_space_t space,
1752 if (space == IS_NULL)
1767 kr = ipc_port_translate_receive(space, name, &port);
1787 kr = ipc_port_translate_receive(space, name, &port);
1808 kr = ipc_port_translate_receive(space, name, &port);
1831 kr = ipc_port_translate_receive(space, name, &port);
1852 ipc_space_t space,
1861 if (space == IS_NULL)
1878 kr = ipc_port_translate_receive(space, name, &port);
1894 kr = ipc_port_translate_receive(space, name, &port);
1911 kr = ipc_port_translate_receive(space, name, &port);
1966 kr = ipc_port_translate_receive(space, name, &port);
2003 * KERN_INVALID_TASK The space is null.
2004 * KERN_INVALID_TASK The space is dead.
2014 ipc_space_t space,
2023 if (space == IS_NULL)
2031 kr = ipc_object_translate_two(space,
2060 * KERN_INVALID_TASK The space is null.
2061 * KERN_INVALID_TASK The space is dead.
2072 ipc_space_t space,
2081 if (space == IS_NULL)
2087 kr = ipc_object_translate_two(space,
2110 * Set port name space of task to specified size.
2114 ipc_space_t space,
2119 is_write_lock(space);
2121 if (!is_active(space)) {
2122 is_write_unlock(space);
2126 kr = ipc_entry_grow_table(space, table_entries);
2128 is_write_unlock(space);
2289 * KERN_INVALID_TASK The space is null.
2290 * KERN_INVALID_TASK The space is dead.
2292 * KERN_NO_SPACE No room in space for another right.
2298 ipc_space_t space,
2306 if (space == IS_NULL)
2309 /* Allocate a new port in the IPC space */
2310 kr = ipc_port_alloc(space, name, &port);
2329 kr = mach_port_set_attributes(space, *name, MACH_PORT_LIMITS_INFO,
2336 kr = mach_port_set_attributes(space, *name, MACH_PORT_TEMPOWNER, NULL, 0);
2342 kr = mach_port_set_attributes(space, *name, MACH_PORT_IMPORTANCE_RECEIVER, NULL, 0);
2348 kr = mach_port_set_attributes(space, *name, MACH_PORT_DENAP_RECEIVER, NULL, 0);
2354 kr = ipc_object_copyin(space, *name, MACH_MSG_TYPE_MAKE_SEND, (ipc_object_t *)&port);
2358 kr = mach_port_insert_right(space, *name, port, MACH_MSG_TYPE_PORT_SEND);
2367 (void) mach_port_destruct(space, *name, 0, context);
2379 * KERN_INVALID_TASK The space is null.
2380 * KERN_INVALID_TASK The space is dead.
2390 ipc_space_t space,
2398 if (space == IS_NULL)
2405 kr = ipc_right_lookup_write(space, name, &entry);
2408 /* space is write-locked and active */
2409 kr = ipc_right_destruct(space, name, entry, srdelta, guard); /* unlocks */
2423 * KERN_INVALID_TASK The space is null.
2424 * KERN_INVALID_TASK The space is dead.
2431 ipc_space_t space,
2439 if (space == IS_NULL)
2446 kr = ipc_port_translate_receive(space, name, &port);
2466 * KERN_INVALID_TASK The space is null.
2467 * KERN_INVALID_TASK The space is dead.
2475 ipc_space_t space,
2483 if (space == IS_NULL)
2489 kr = ipc_port_translate_receive(space, name, &port);