1 <h2>mach_port_deallocate
</h2>
4 <strong>Function
</strong> - Decrement the target port right's user reference count.
7 <strong>kern_return_t mach_port_deallocate
</strong>
8 <strong>(ipc_space_t
</strong> <var>task
</var>,
9 <strong>mach_port_name_t
</strong> <var>name
</var><strong>);
</strong>
17 The task holding the right.
22 The task's name for the right.
26 The
<strong>mach_port_deallocate
</strong> function releases a user reference
28 an alternate form of
<strong>mach_port_mod_refs
</strong> that allows
29 a task to release a user
30 reference for a send or send-once right without failing if the
32 the right is now actually a dead name.
34 If
<var>name
</var> denotes a dead name, send right, or send-once right,
36 one user reference. If it only had one user reference, then
37 the right is destroyed.
38 If
<var>name
</var> does not denote an element in the port name space, the
43 This interface is machine word length specific because of the port name
45 <h3>RETURN VALUES
</h3>
48 <dt> <strong>KERN_INVALID_RIGHT
</strong>
50 The
<var>name
</var> parameter denoted an invalid right.
52 <h3>RELATED INFORMATION
</h3>
55 <a href=
"mach_port_allocate.html"><strong>mach_port_allocate
</strong></a>,
56 <a href=
"mach_port_allocate_name.html"><strong>mach_port_allocate_name
</strong></a>,
57 <a href=
"mach_port_mod_refs.html"><strong>mach_port_mod_refs
</strong></a>.