Lines Matching refs:right
390 * Retrieves the type of a right in the space.
407 * KERN_INVALID_NAME The name doesn't denote a right.
446 * Changes the name denoting a right,
451 * KERN_SUCCESS The right is renamed.
454 * KERN_INVALID_NAME The oname doesn't denote a right.
456 * KERN_NAME_EXISTS The nname already denotes a right.
481 * Allocates a right in a space, using a specific name
482 * for the new right. Possible rights:
500 * KERN_SUCCESS The right is allocated.
504 * KERN_INVALID_VALUE "right" isn't a legal kind of right.
505 * KERN_NAME_EXISTS The name already denotes a right.
516 mach_port_right_t right,
527 kr = mach_port_allocate_full (space, right, MACH_PORT_NULL,
535 * Allocates a right in a space. Like mach_port_allocate_name,
536 * except that the implementation picks a name for the right.
538 * currently denote a right.
542 * KERN_SUCCESS The right is allocated.
545 * KERN_INVALID_VALUE "right" isn't a legal kind of right.
547 * KERN_NO_SPACE No room in space for another right.
553 mach_port_right_t right,
559 kr = mach_port_allocate_full (space, right, MACH_PORT_NULL,
567 * Allocates a right, with qos options, in a space. Like
569 * picks a name for the right. The name may be any legal name
570 * in the space that doesn't currently denote a right.
574 * KERN_SUCCESS The right is allocated.
577 * KERN_INVALID_VALUE "right" isn't a legal kind of right.
580 * KERN_NO_SPACE No room in space for another right.
586 mach_port_right_t right,
594 kr = mach_port_allocate_full (space, right, MACH_PORT_NULL,
602 * Allocates a right in a space. Supports all of the
606 * currently denote a right.
610 * KERN_SUCCESS The right is allocated.
613 * KERN_INVALID_VALUE "right" isn't a legal kind of right.
615 * KERN_NO_SPACE No room in space for another right.
621 mach_port_right_t right,
647 if (right != MACH_PORT_RIGHT_RECEIVE)
655 switch (right) {
704 * in a space. The destruction of a receive right
706 * has been made for it; the destruction of a port-set right
714 * KERN_INVALID_NAME The name doesn't denote a right.
744 * Deallocates a user reference from a send right,
745 * send-once right, or a dead-name right. May
746 * deallocate the right, if this is the last uref,
755 * KERN_INVALID_NAME The name doesn't denote a right.
756 * KERN_INVALID_RIGHT The right isn't correct.
785 * Retrieves the number of user references held by a right.
788 * name denotes a right, but not the queried right.
795 * KERN_INVALID_VALUE "right" isn't a legal value.
796 * KERN_INVALID_NAME The name doesn't denote a right.
803 mach_port_right_t right,
814 if (right >= MACH_PORT_RIGHT_NUMBER)
818 if (right == MACH_PORT_RIGHT_SEND ||
819 right == MACH_PORT_RIGHT_SEND_ONCE) {
836 if (type & MACH_PORT_TYPE(right))
837 switch (right) {
865 * Modifies the number of user references held by a right.
867 * If it is zero, the right is deallocated. If the name
875 * KERN_INVALID_VALUE "right" isn't a legal value.
876 * KERN_INVALID_NAME The name doesn't denote a right.
877 * KERN_INVALID_RIGHT Name doesn't denote specified right.
886 mach_port_right_t right,
895 if (right >= MACH_PORT_RIGHT_NUMBER)
899 if (right == MACH_PORT_RIGHT_SEND ||
900 right == MACH_PORT_RIGHT_SEND_ONCE)
910 kr = ipc_right_delta(space, name, entry, right, delta); /* unlocks */
918 * Changes a receive right's make-send count.
925 * KERN_INVALID_NAME The name doesn't denote a right.
958 * Changes a receive right's sequence number.
965 * KERN_INVALID_NAME The name doesn't denote a right.
1035 * Returns the space's name for each receive right member.
1042 * KERN_INVALID_NAME The name doesn't denote a right.
1197 * KERN_INVALID_NAME Member didn't denote a right.
1198 * KERN_INVALID_RIGHT Member didn't denote a receive right.
1199 * KERN_INVALID_NAME After didn't denote a right.
1200 * KERN_INVALID_RIGHT After didn't denote a port set right.
1272 * a send-once right for the notification to use,
1274 * send-once right, if any. Possible types:
1278 * for a receive right. Sync should be zero.
1281 * receive right. If there are currently no
1283 * current make-send count, and a send-once right
1288 * or receive right. If the name is already a
1290 * right is supplied, then an immediate dead-name
1299 * KERN_INVALID_NAME Name doesn't denote a right.
1300 * KERN_INVALID_RIGHT Name doesn't denote appropriate right.
1418 * Inserts a right into a space, as if the space
1419 * voluntarily received the right in a message,
1420 * except that the right gets the specified name.
1424 * KERN_SUCCESS Inserted the right.
1428 * KERN_NAME_EXISTS The name already denotes a right.
1429 * KERN_INVALID_VALUE Message doesn't carry a port right.
1460 * Extracts a right from a space, as if the space
1461 * voluntarily sent the right to the caller.
1465 * KERN_SUCCESS Extracted the right.
1468 * KERN_INVALID_VALUE Requested type isn't a port right.
1469 * KERN_INVALID_NAME Name doesn't denote a right.
1470 * KERN_INVALID_RIGHT Name doesn't denote appropriate right.
1492 * send-once right being copied, but instead return an
1678 * Add the receive right, specified by name, to
1687 * KERN_INVALID_NAME name didn't denote a right.
1688 * KERN_INVALID_RIGHT name didn't denote a receive right.
1689 * KERN_INVALID_NAME pset_name didn't denote a right.
1690 * KERN_INVALID_RIGHT pset_name didn't denote a portset right.
1736 * KERN_INVALID_NAME Member didn't denote a right.
1737 * KERN_INVALID_RIGHT Member didn't denote a receive right.
1738 * KERN_INVALID_NAME After didn't denote a right.
1739 * KERN_INVALID_RIGHT After didn't denote a port set right.