Function - Create a port right associated with the caller-specified subsystem.
kern_return_t mach_port_allocate_subsystem (ipc_space_t task, subsystem_t subsys, mach_port_name_t mach_port_name_t);
The mach_port_allocate_subsystem function creates a new right and associates it with the specifed subsystem (specified via the subsys parameter) previously registered via a call to the mach_subsystem_create interface. The new right's name is returned in the name parameter. The association of this port with the subsystem is immutable for the life of the port.
Any RPC targeted at the new port will cause the kernel glue-code to locate the server function address and argument signature in the associated subsystem.
This interface is machine word length specific because of the port name parameter.
Functions: mach_subsystem_create, thread_activation_create.