-/*
- * Routine: mach_port_allocate_subsystem [kernel call]
- * Purpose:
- * Allocates a receive right in a space. Like
- * mach_port_allocate, except that the caller specifies an
- * RPC subsystem that is to be used to implement RPC's to the
- * port. When possible, allocate rpc subsystem ports without
- * nms, since within RPC ports are intended to be used for
- * identity only (i.e. nms is painful in the distributed case
- * and we don't need or want it for RPC anyway).
- * Conditions:
- * Nothing locked.
- * Returns:
- * KERN_SUCCESS The right is allocated.
- * KERN_INVALID_TASK The space is null.
- * KERN_INVALID_TASK The space is dead.
- * KERN_RESOURCE_SHORTAGE Couldn't allocate memory.
- * KERN_NO_SPACE No room in space for another right.
- * KERN_INVALID_ARGUMENT bogus subsystem
- */
-
-kern_return_t
-mach_port_allocate_subsystem(
- ipc_space_t space,
- subsystem_t subsystem,
- mach_port_name_t *namep)
-{
- kern_return_t kr;
- ipc_port_t port;
- mach_port_qos_t qos = qos_template;
-
- kr = mach_port_allocate_full (space,
- MACH_PORT_RIGHT_RECEIVE,
- subsystem, &qos, namep);
- return (kr);
-}
-