Function - Return the current count of user references on the target port right.
kern_return_t mach_port_get_refs (ipc_space_t task, mach_port_name_t name, mach_port_right_t right, mach_port_urefs_t *refs);
The mach_port_get_refs function returns the number of user references a task has for a right.
If name denotes a right, but not the type of right specified, then zero is returned. Otherwise a positive number of user references is returned. Note a name may simultaneously denote send and receive rights. The number of references for send-once rights is always one.
This interface is machine word length specific because of the port name parameter.
Functions: mach_port_mod_refs.