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

Lines Matching refs:space

135  *		Look up an object in a space.
141 * KERN_INVALID_TASK The space is dead.
148 ipc_space_t space,
157 kr = ipc_right_lookup_read(space, name, &entry);
160 /* space is read-locked and active */
163 is_read_unlock(space);
171 is_read_unlock(space);
180 * Look up two objects in a space.
186 * KERN_INVALID_TASK The space is dead.
193 ipc_space_t space,
206 kr = ipc_right_lookup_two_read(space, name1, &entry1, name2, &entry2);
209 /* space is read-locked and active */
212 is_read_unlock(space);
217 is_read_unlock(space);
231 is_read_unlock(space);
243 * KERN_INVALID_TASK The space is dead.
244 * KERN_NO_SPACE No room for an entry in the space.
250 ipc_space_t space,
256 kr = ipc_entry_alloc(space, namep, &entry);
259 /* space is write-locked */
266 is_write_unlock(space);
278 * KERN_INVALID_TASK The space is dead.
285 ipc_space_t space,
291 kr = ipc_entry_alloc_name(space, name, &entry);
294 /* space is write-locked */
296 if (ipc_right_inuse(space, name, entry))
304 is_write_unlock(space);
317 * KERN_INVALID_TASK The space is dead.
318 * KERN_NO_SPACE No room for an entry in the space.
324 ipc_space_t space,
359 kr = ipc_entry_alloc(space, namep, &entry);
364 /* space is write-locked */
370 is_write_unlock(space);
388 * KERN_INVALID_TASK The space is dead.
395 ipc_space_t space,
429 kr = ipc_entry_alloc_name(space, name, &entry);
434 /* space is write-locked */
436 if (ipc_right_inuse(space, name, entry)) {
445 is_write_unlock(space);
487 * Copyin a capability from a space.
494 * KERN_INVALID_TASK The space is dead.
495 * KERN_INVALID_NAME Name doesn't exist in space.
501 ipc_space_t space,
516 kr = ipc_right_lookup_write(space, name, &entry);
519 /* space is write-locked and active */
521 kr = ipc_right_copyin(space, name, entry,
525 ipc_entry_dealloc(space, name, entry);
526 is_write_unlock(space);
686 * Copyout a capability, placing it into a space.
692 * KERN_INVALID_TASK The space is dead.
694 * KERN_NO_SPACE No room in space for another right.
702 ipc_space_t space,
715 is_write_lock(space);
718 if (!space->is_active) {
719 is_write_unlock(space);
724 ipc_right_reverse(space, object, &name, &entry)) {
732 kr = ipc_entry_get(space, &name, &entry);
734 /* unlocks/locks space, so must start again */
736 kr = ipc_entry_grow_table(space, ITS_SIZE_NONE);
738 return kr; /* space is unlocked */
749 ipc_entry_dealloc(space, name, entry);
750 is_write_unlock(space);
758 /* space is write-locked and active, object is locked and active */
760 kr = ipc_right_copyout(space, name, entry,
763 is_write_unlock(space);
773 * Copyout a capability, placing it into a space.
780 * KERN_INVALID_TASK The space is dead.
791 ipc_space_t space,
805 kr = ipc_entry_alloc_name(space, name, &entry);
808 /* space is write-locked and active */
811 ipc_right_reverse(space, object, &oname, &oentry)) {
818 ipc_entry_dealloc(space, name, entry);
820 is_write_unlock(space);
827 if (ipc_right_inuse(space, name, entry))
836 ipc_entry_dealloc(space, name, entry);
837 is_write_unlock(space);
844 /* space is write-locked and active, object is locked and active */
846 kr = ipc_right_copyout(space, name, entry,
849 is_write_unlock(space);
858 * in a funny way instead of being given to the receiving space.
868 ipc_space_t space,
881 * If the space is the receiver/owner of the object,
883 * the space's name for the object. Otherwise
893 if (port->ip_receiver == space)
916 if (port->ip_receiver == space) {
926 * happened the space lost receive rights.
953 * Rename an entry in a space.
958 * KERN_INVALID_TASK The space was dead.
966 ipc_space_t space,
973 kr = ipc_entry_alloc_name(space, nname, &nentry);
977 /* space is write-locked and active */
979 if (ipc_right_inuse(space, nname, nentry)) {
980 /* space is unlocked */
987 ((oentry = ipc_entry_lookup(space, oname)) == IE_NULL)) {
988 ipc_entry_dealloc(space, nname, nentry);
989 is_write_unlock(space);
993 kr = ipc_right_rename(space, oname, oentry, nname, nentry);
994 /* space is unlocked */