Go to the first, previous, next, last section, table of contents.
mach_port_get_set_status
returns the members of a
port set. members is an array that is automatically allocated
when the reply message is received. The user should
vm_deallocate
it when the data is no longer needed.
The function returns KERN_SUCCESS
if the call succeeded,
KERN_INVALID_TASK
if task was invalid,
KERN_INVALID_NAME
if name did not denote a right,
KERN_INVALID_RIGHT
if name denoted a right, but not a
receive right and KERN_RESOURCE_SHORTAGE
if the kernel ran out of
memory.
The mach_port_get_set_status
call is actually an RPC to
task, normally a send right for a task port, but potentially any
send right. In addition to the normal diagnostic return codes from the
call's server (normally the kernel), the call may return mach_msg
return codes.
MACH_PORT_NULL
, then the receive right is not put into a port
set, but removed from its current port set.
The function returns KERN_SUCCESS
if the call succeeded,
KERN_INVALID_TASK
if task was invalid,
KERN_INVALID_NAME
if member or after did not denote a
right, KERN_INVALID_RIGHT
if member denoted a right, but
not a receive right or after denoted a right, but not a port set,
and KERN_NOT_IN_SET
if after was MACH_PORT_NULL
, but
member
wasn't currently in a port set.
The mach_port_move_member
call is actually an RPC to task,
normally a send right for a task port, but potentially any send right.
In addition to the normal diagnostic return codes from the call's server
(normally the kernel), the call may return mach_msg
return codes.
Go to the first, previous, next, last section, table of contents.