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

Lines Matching refs:space

130  *		Look up an object in a space.
136 * KERN_INVALID_TASK The space is dead.
143 ipc_space_t space,
152 kr = ipc_right_lookup_read(space, name, &entry);
155 /* space is read-locked and active */
158 is_read_unlock(space);
166 is_read_unlock(space);
175 * Look up two objects in a space.
181 * KERN_INVALID_TASK The space is dead.
188 ipc_space_t space,
201 kr = ipc_right_lookup_two_read(space, name1, &entry1, name2, &entry2);
204 /* space is read-locked and active */
207 is_read_unlock(space);
212 is_read_unlock(space);
226 is_read_unlock(space);
238 * KERN_INVALID_TASK The space is dead.
239 * KERN_NO_SPACE No room for an entry in the space.
245 ipc_space_t space,
251 kr = ipc_entry_alloc(space, namep, &entry);
254 /* space is write-locked */
260 ipc_entry_modified(space, *namep, entry);
261 is_write_unlock(space);
273 * KERN_INVALID_TASK The space is dead.
280 ipc_space_t space,
286 kr = ipc_entry_alloc_name(space, name, &entry);
289 /* space is write-locked */
291 if (ipc_right_inuse(space, name, entry))
298 ipc_entry_modified(space, name, entry);
299 is_write_unlock(space);
309 * The space is write locked on successful return.
313 * KERN_INVALID_TASK The space is dead.
314 * KERN_NO_SPACE No room for an entry in the space.
320 ipc_space_t space,
352 kr = ipc_entry_alloc(space, namep, &entry);
357 /* space is write-locked */
361 ipc_entry_modified(space, *namep, entry);
381 * KERN_INVALID_TASK The space is dead.
388 ipc_space_t space,
419 kr = ipc_entry_alloc_name(space, name, &entry);
424 /* space is write-locked */
426 if (ipc_right_inuse(space, name, entry)) {
433 ipc_entry_modified(space, name, entry);
436 is_write_unlock(space);
481 * Copyin a capability from a space.
488 * KERN_INVALID_TASK The space is dead.
489 * KERN_INVALID_NAME Name doesn't exist in space.
495 ipc_space_t space,
520 kr = ipc_right_lookup_write(space, name, &entry);
523 /* space is write-locked and active */
526 kr = ipc_right_copyin(space, name, entry,
535 ipc_entry_dealloc(space, name, entry);
536 is_write_unlock(space);
747 * Copyout a capability, placing it into a space.
753 * KERN_INVALID_TASK The space is dead.
755 * KERN_NO_SPACE No room in space for another right.
763 ipc_space_t space,
776 is_write_lock(space);
779 if (!is_active(space)) {
780 is_write_unlock(space);
785 ipc_right_reverse(space, object, &name, &entry)) {
793 kr = ipc_entry_get(space, &name, &entry);
795 /* unlocks/locks space, so must start again */
797 kr = ipc_entry_grow_table(space, ITS_SIZE_NONE);
799 return kr; /* space is unlocked */
810 ipc_entry_dealloc(space, name, entry);
811 is_write_unlock(space);
819 /* space is write-locked and active, object is locked and active */
821 kr = ipc_right_copyout(space, name, entry,
825 is_write_unlock(space);
835 * Copyout a capability, placing it into a space.
842 * KERN_INVALID_TASK The space is dead.
853 ipc_space_t space,
872 kr = ipc_entry_alloc_name(space, name, &entry);
875 /* space is write-locked and active */
878 ipc_right_reverse(space, object, &oname, &oentry)) {
885 ipc_entry_dealloc(space, name, entry);
887 is_write_unlock(space);
894 if (ipc_right_inuse(space, name, entry))
903 ipc_entry_dealloc(space, name, entry);
904 is_write_unlock(space);
911 /* space is write-locked and active, object is locked and active */
915 * We are slamming a receive right into the space, without
923 if (space->is_task != TASK_NULL) {
924 task_imp = space->is_task->task_imp_base;
938 kr = ipc_right_copyout(space, name, entry,
942 is_write_unlock(space);
962 * in a funny way instead of being given to the receiving space.
972 ipc_space_t space,
985 * If the space is the receiver/owner of the object,
987 * the space's name for the object. Otherwise
997 if (port->ip_receiver == space)
1020 if (port->ip_receiver == space) {
1030 * happened the space lost receive rights.
1057 * Rename an entry in a space.
1062 * KERN_INVALID_TASK The space was dead.
1070 ipc_space_t space,
1077 kr = ipc_entry_alloc_name(space, nname, &nentry);
1081 /* space is write-locked and active */
1083 if (ipc_right_inuse(space, nname, nentry)) {
1084 /* space is unlocked */
1091 ((oentry = ipc_entry_lookup(space, oname)) == IE_NULL)) {
1092 ipc_entry_dealloc(space, nname, nentry);
1093 is_write_unlock(space);
1097 kr = ipc_right_rename(space, oname, oentry, nname, nentry);
1098 /* space is unlocked */