1 <h2>mach_reply_port
</h2>
4 <strong>System Trap
</strong> - Allocate a new port and insert corresponding receive right in the calling task.
7 <strong>#include<mach/mach_traps.h>
</strong>
9 <strong>mach_port_t mach_reply_port( void )
</strong>
17 The
<strong>mach_reply_port
</strong> function creates a new port for
19 returns the name assigned by the kernel. The kernel records
20 the name in the task's
21 port name space and grants the task receive rights for the port.
23 not a member of any port set.
25 This function is an optimized version of
<strong>mach_port_allocate
</strong>
27 references. Its main purpose is to allocate a reply port for
28 the task when the task
29 is starting, for example, before it has any ports to use as reply
30 ports for any IPC-based system functions.
32 If the task's task self port is null (thereby deactivating basic Mach
33 manipulations by the task), this call returns null.
36 Although the created port can be used for any purpose, the implementation may
37 optimize its use as a reply port.
38 <h3>RETURN VALUES
</h3>
40 <dt> <strong>MACH_PORT_NULL
</strong>
42 No port was allocated.
44 <dt> [reply receive right]
46 Any other value indicates success.
48 <h3>RELATED INFORMATION
</h3>
51 <a href=
"mach_port_allocate.html"><strong>mach_port_allocate
</strong></a>.