Function - Register information about an RPC subsystem.
The task for which the subsystem is registered; normally the calling
task, but not necessarily.
The MIG-generated data structure describing the exported routines and
their input/output characteristics (e.g. arguments and return values).
The size of the user_subsys data structure argument, in bytes.
The port returned that names the registered subsystem.
The mach_subsystem_create function is used by a server to register
information about an RPC subsystem with the kernel.
MIG automatically generates, in the server source file, a
user_subsystem_t data structure that is appropriate for registering
the subsystem. This data structure includes a per-routine array that
The address of the server function that performs the work.
The address of the MIG-generated server-side marshalling stub, to be
used with mach_msg.
The argument signature (i.e. NDR-style argument format) of the
Upon successful completion, mach_subsystem_create returns,
via the subsys parameter, a port naming the registered subsystem.
Each port on which the server is to receive short-circuited RPC's (or
a mach_rpc call) must be associated with a registered subsystem, by
One or more of the addresses in the range specified by the subsystem
address and size are not valid addresses in the caller, or some of the
internal pointers in the subsystem do not point to places within the
address range (all of the data of the subsystem is required to be
contiguous, even the parts that are pointed to by other parts).
The port name specified by target_task is not a send right naming a task,
or the subsystem size is too small to be valid.
The target task is dead.
The kernel cannot allocate the subsystem due to insufficient available