1*1031c584SApple OSS Distributions<h2>device_set_status</h2> 2*1031c584SApple OSS Distributions<hr> 3*1031c584SApple OSS Distributions<p> 4*1031c584SApple OSS Distributions<strong>Function</strong> - Set device status. 5*1031c584SApple OSS Distributions<h3>SYNOPSIS</h3> 6*1031c584SApple OSS Distributions<pre> 7*1031c584SApple OSS Distributions<strong>#include< device/device.h></strong> 8*1031c584SApple OSS Distributions 9*1031c584SApple OSS Distributions<strong>kern_return_t device_set_status</strong> 10*1031c584SApple OSS Distributions <strong>(mach_port_t</strong> <var>device</var>, 11*1031c584SApple OSS Distributions <strong>dev_flavor_t</strong> <var>flavor</var>, 12*1031c584SApple OSS Distributions <strong>dev_status_t</strong> <var>status</var>, 13*1031c584SApple OSS Distributions <strong>mach_msg_type_number_t</strong> <var>status_count</var><strong>);</strong> 14*1031c584SApple OSS Distributions</pre> 15*1031c584SApple OSS Distributions<h3>PARAMETERS</h3> 16*1031c584SApple OSS Distributions<dl> 17*1031c584SApple OSS Distributions<p> 18*1031c584SApple OSS Distributions<dt> <var>device</var> 19*1031c584SApple OSS Distributions<dd> 20*1031c584SApple OSS Distributions[in device send right] 21*1031c584SApple OSS DistributionsA device port to the device to be manipulated. 22*1031c584SApple OSS Distributions<p> 23*1031c584SApple OSS Distributions<dt> <var>flavor</var> 24*1031c584SApple OSS Distributions<dd> 25*1031c584SApple OSS Distributions[in scalar] 26*1031c584SApple OSS DistributionsThe type of status information to set. 27*1031c584SApple OSS Distributions<p> 28*1031c584SApple OSS Distributions<dt> <var>status</var> 29*1031c584SApple OSS Distributions<dd> 30*1031c584SApple OSS Distributions[pointer to in array of natural-sized units] 31*1031c584SApple OSS DistributionsThe status information to set. 32*1031c584SApple OSS Distributions<p> 33*1031c584SApple OSS Distributions<dt> <var>status_count</var> 34*1031c584SApple OSS Distributions<dd> 35*1031c584SApple OSS Distributions[in scalar] 36*1031c584SApple OSS DistributionsThe size of the status information (in natural-sized units). 37*1031c584SApple OSS Distributions</dl> 38*1031c584SApple OSS Distributions<h3>DESCRIPTION</h3> 39*1031c584SApple OSS Distributions<p> 40*1031c584SApple OSS DistributionsThe <strong>device_set_status</strong> function sets device status. 41*1031c584SApple OSS DistributionsThe possible values of <var>flavor</var> 42*1031c584SApple OSS Distributionsas well as the corresponding meanings are device dependent. 43*1031c584SApple OSS Distributions<h3>RETURN VALUES</h3> 44*1031c584SApple OSS Distributions<dl> 45*1031c584SApple OSS Distributions<p> 46*1031c584SApple OSS Distributions<dt> <strong>D_DEVICE_DOWN</strong> 47*1031c584SApple OSS Distributions<dd> 48*1031c584SApple OSS DistributionsDevice has been shut down 49*1031c584SApple OSS Distributions<p> 50*1031c584SApple OSS Distributions<dt> <strong>D_IO_ERROR</strong> 51*1031c584SApple OSS Distributions<dd> 52*1031c584SApple OSS DistributionsHardware I/O error 53*1031c584SApple OSS Distributions<p> 54*1031c584SApple OSS Distributions<dt> <strong>D_NO_SUCH_DEVICE</strong> 55*1031c584SApple OSS Distributions<dd> 56*1031c584SApple OSS DistributionsNo device with that name, or the device is not operational. 57*1031c584SApple OSS Distributions<p> 58*1031c584SApple OSS Distributions<dt> <strong>D_OUT_OF_BAND</strong> 59*1031c584SApple OSS Distributions<dd> 60*1031c584SApple OSS DistributionsOut-of-band condition occurred on device (such as typing 61*1031c584SApple OSS Distributions <strong><Ctrl>-C</strong>). 62*1031c584SApple OSS Distributions<p> 63*1031c584SApple OSS Distributions<dt> <strong>D_READ_ONLY</strong> 64*1031c584SApple OSS Distributions<dd> 65*1031c584SApple OSS DistributionsData cannot be written to this device. 66*1031c584SApple OSS Distributions</dl> 67*1031c584SApple OSS Distributions<h3>RELATED INFORMATION</h3> 68*1031c584SApple OSS Distributions<p> 69*1031c584SApple OSS DistributionsFunctions: 70*1031c584SApple OSS Distributions<a href="device_get_status.html"><strong>device_get_status</strong></a>. 71