X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/743b15655a24ee3fe9f458f383003e011db0558f..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/man/mach_port_set_attributes.html diff --git a/osfmk/man/mach_port_set_attributes.html b/osfmk/man/mach_port_set_attributes.html index 9b3f9c183..59792bdd8 100755 --- a/osfmk/man/mach_port_set_attributes.html +++ b/osfmk/man/mach_port_set_attributes.html @@ -1 +1,78 @@ -

mach_port_set_attributes


Function - Set the target port's attributes.

SYNOPSIS

kern_return_t   mach_port_set_attributes
                (ipc_space_t                               task,
                 mach_port_name_t                          name,
                 mach_port_flavor_t                      flavor,
                 mach_port_info_t                     port_info,
                 mach_msg_type_number_t         port_info_count);

PARAMETERS

task
[in task send right] The task holding a receive right to the port in question.

name
[in scalar] task's name for the port.

flavor
[in scalar] The type of attributes to be set. Valid values are:

MACH_PORT_LIMITS_INFO
Sets resource limits (queue limits) for the port. The declaration of this data is found in structure mach_port_limits.

port_info
[pointer to in structure] Attributes for the specified port.

port_info_count
[in scalar] The size of the buffer (in natural-sized units).

DESCRIPTION

The mach_port_set_attributes function sets attributes of type flavor.

NOTES

This interface is machine word length specific because of the port name parameter.

RETURN VALUES

KERN_INVALID_NAME
name did not denote a right.

KERN_INVALID_RIGHT
name denoted a right, but not a receive right.

RELATED INFORMATION

Functions: mach_port_allocate, mach_port_allocate_name, mach_port_get_attributes.

Data Structures: mach_port_limits. \ No newline at end of file +

mach_port_set_attributes

+
+

+Function - Set the target port's attributes. +

SYNOPSIS

+
+kern_return_t   mach_port_set_attributes
+                (ipc_space_t                               task,
+                 mach_port_name_t                          name,
+                 mach_port_flavor_t                      flavor,
+                 mach_port_info_t                     port_info,
+                 mach_msg_type_number_t         port_info_count);
+
+

PARAMETERS

+
+

+

task +
+[in task send right] +The task holding a receive right to the port in +question. +

+

name +
+[in scalar] +task's name for the port. +

+

flavor +
+[in scalar] +The type of attributes to be set. Valid values are: +
+

+

MACH_PORT_LIMITS_INFO +
+Sets resource limits (queue limits) for the port. The declaration +of this data is found in structure mach_port_limits. +
+

+

port_info +
+[pointer to in structure] +Attributes for the specified port. +

+

port_info_count +
+[in scalar] +The size of the buffer (in natural-sized units). +
+ +

DESCRIPTION

+

+The mach_port_set_attributes function sets attributes of type +flavor. +

NOTES

+

+This interface is machine word length specific because of the port name +parameter. +

RETURN VALUES

+
+

+

KERN_INVALID_NAME +
+name did not denote a right. +

+

KERN_INVALID_RIGHT +
+name denoted a right, but not a receive right. +
+

RELATED INFORMATION

+

+Functions: +mach_port_allocate, +mach_port_allocate_name, +mach_port_get_attributes. +

+Data Structures: +mach_port_limits.