4 <strong>System Trap
</strong> - Real-Time RPC trap.
7 <strong>#include<mach/rpc.h>
</strong>
9 <strong>mach_rpc_return_t mach_rpc_trap
</strong>
10 <strong>(mach_port_t
</strong> <var>dest_port
</var>,
11 <strong>mach_rpc_id_t
</strong> <var>routine_num
</var>,
12 <strong>mach_rpc_signature_t
</strong> <var>signature_ptr
</var>,
13 <strong>mach_rpc_size_t
</strong> <var>signature_size
</var><strong>);
</strong>
18 <dt> <var>dest_port
</var>
20 [in send right] The port representing the destination of the RPC
21 (usually a registered subsystem established by a call to
22 <strong>mach_port_allocate_subsystem
</strong>).
24 <dt> <var>routine_num
</var>
26 [in scalar] Identifier of the server work function.
28 <dt> <var>signature_ptr
</var>
30 [in pointer] Pointer to the call's
<strong>mach_rpc_signature
</strong> structure.
32 <dt> <var>signature_size
</var>
34 [in scalar] Size, in bytes, of the call's
<strong>mach_rpc_signature
</strong> structure.
38 The
<strong>mach_rpc_trap
</strong> system trap is the entry point for the
39 invoke side of the Mach RPC service used to transfer control to an RPC server.
40 The trap is accessed via the MIG generated
41 <strong>MACH_RPC
</strong> macro
42 which is invoked transparently when the
<strong>mach_rpc
</strong> feature is enabled.
43 This function is not designed for use directly by the user. It is
44 automatically generated by MIG to handle a function call.
47 complete description of this functionality, refer to: Burke, Edward,
48 Michael Condict, David Mitchell, Franklin Reynolds, Peter Watkins,
49 William Willcox, "RPC Design for Real-Time Mach," OSF Research
50 Institute, Cambridge, MA.
53 This interface is experimental and therefore subject to change.
54 <h3>RETURN VALUES
</h3>
57 <dt> <strong>KERN_FAILURE
</strong>
59 Either the argument copyin failed, there were too many arguments, or
60 the argument copyout failed.
62 <dt> <strong>KERN_INVALID_ARGUMENT
</strong>
64 The dest_port, signature_ptr, and/or the subsystem associated with the
65 dest_port is invalid; the siganture_size is less than, or equal to, zero.
67 <dt> <strong>KERN_NO_ACCESS
</strong>
69 The kernel port associated with the dest_port name is a norma proxy
72 <dt> <strong>KERN_RESOURCE_SHORTAGE
</strong>
74 The kernel could not allocate storage for an internal rpc state
77 <h3>RELATED INFORMATION
</h3>
80 <a href=
"mach_rpc_return_trap.html"><strong>mach_rpc_return_trap
</strong></a>,
81 <a href=
"thread_activation_create.html"><strong>thread_activation_create
</strong></a>,
82 <a href=
"MP_allocate_subsystem.html"><strong>mach_port_allocate_subsystem
</strong></a>,
83 <a href=
"mach_subsystem_create.html"><strong>mach_subsystem_create
</strong></a>.