4 <strong>Function
</strong> - De-establish a connection to a device.
7 <strong>#include< device/device.h>
</strong>
9 <strong>kern_return_t device_close
</strong>
10 <strong>(mach_port_t
</strong> <var>device
</var><strong>);
</strong>
15 <dt> <var>device
</var>
17 [in device send right]
18 A device port to the device to be closed.
22 The
<strong>device_close
</strong> function destroys the associated device
24 for the named device is decremented. If this count reaches zero, the close
25 operation of the device driver is invoked, closing the device.
28 <strong>device_close
</strong> will destroy any mapped device windows
31 <h3>RETURN VALUES
</h3>
34 <dt> <strong>D_NO_SUCH_DEVICE
</strong>
36 No device with that name, or the device is not operational.
38 <h3>RELATED INFORMATION
</h3>
41 <a href=
"device_open.html"><strong>device_open
</strong></a>.