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