X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..36401178fd6817c043cc00b0c00c7f723e58efae:/osfmk/man/device_close.html diff --git a/osfmk/man/device_close.html b/osfmk/man/device_close.html index 570ae7111..14f4ed96e 100755 --- a/osfmk/man/device_close.html +++ b/osfmk/man/device_close.html @@ -1 +1,41 @@ -

device_close


Function - De-establish a connection to a device.

SYNOPSIS

#include< device/device.h>

kern_return_t	device_close
		(mach_port_t	device);

PARAMETERS

device
[in device send right] A device port to the device to be closed.

DESCRIPTION

The device_close function destroys the associated device port. The open count for the named device is decremented. If this count reaches zero, the close operation of the device driver is invoked, closing the device.

NOTES

device_close will destroy any mapped device windows obtained through this device port.

RETURN VALUES

D_NO_SUCH_DEVICE
No device with that name, or the device is not operational.

RELATED INFORMATION

Functions: device_open. \ No newline at end of file +

device_close

+
+

+Function - De-establish a connection to a device. +

SYNOPSIS

+
+#include< device/device.h>
+
+kern_return_t	device_close
+		(mach_port_t	device);
+
+

PARAMETERS

+
+

+

device +
+[in device send right] +A device port to the device to be closed. +
+

DESCRIPTION

+

+The device_close function destroys the associated device +port. The open count +for the named device is decremented. If this count reaches zero, the close +operation of the device driver is invoked, closing the device. +

NOTES

+

+device_close will destroy any mapped device windows +obtained through this +device port. +

RETURN VALUES

+
+

+

D_NO_SUCH_DEVICE +
+No device with that name, or the device is not operational. +
+

RELATED INFORMATION

+

+Functions: +device_open.