X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..c3c9b80d004dbbfdf763edeb97968c6997e3b45b:/osfmk/man/device_open.html diff --git a/osfmk/man/device_open.html b/osfmk/man/device_open.html old mode 100755 new mode 100644 index 3fd4c350e..43bb366d7 --- a/osfmk/man/device_open.html +++ b/osfmk/man/device_open.html @@ -1 +1,112 @@ -
Function - Establish a connection to a device.
#include<device/device.h> kern_return_t device_open (mach_port_t master_port, mach_port_t ledger, dev_mode_t mode, security_token_t security_id, dev_name_t name, mach_port_t device); #include<device/device_request.h> kern_return_t device_open_request (mach_port_t master_port, mach_port_t reply_port, mach_port_t ledger, dev_mode_t mode, security_token_t security_id, dev_name_t name); kern_return_t ds_device_open_reply (mach_port_t reply_port, kern_return_t return_code, mach_port_t device);
The device_open function opens a device object. The open operation of the device is invoked, if the device is not already open. The open count for the device is incremented. Each open for a device returns a port, the allowed operations upon which being governed by mode. The port is not distinct.
Only generic errors apply.
Functions: device_close, device_reply_server. \ No newline at end of file +
+Function - Establish a connection to a device. +
+#include<device/device.h> + +kern_return_t device_open + (mach_port_t master_port, + mach_port_t ledger, + dev_mode_t mode, + security_token_t security_id, + dev_name_t name, + mach_port_t device); + + +#include<device/device_request.h> + +kern_return_t device_open_request + (mach_port_t master_port, + mach_port_t reply_port, + mach_port_t ledger, + dev_mode_t mode, + security_token_t security_id, + dev_name_t name); + + +kern_return_t ds_device_open_reply + (mach_port_t reply_port, + kern_return_t return_code, + mach_port_t device); ++
+
+
+
+
+
+
+
+
+
+
+
+The device_open function opens a device object. The +open operation of the +device is invoked, if the device is not already open. The open +count for the device +is incremented. Each open for a device returns a port, the allowed +operations upon which being governed by mode. The port is not +distinct. +
+Only generic errors apply. +
+Functions: +device_close, +device_reply_server.