summaryrefslogtreecommitdiffstats
path: root/spec/rtems/io/if/open.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/io/if/open.yml')
-rw-r--r--spec/rtems/io/if/open.yml31
1 files changed, 23 insertions, 8 deletions
diff --git a/spec/rtems/io/if/open.yml b/spec/rtems/io/if/open.yml
index 6ec33a03..f3f3c1c5 100644
--- a/spec/rtems/io/if/open.yml
+++ b/spec/rtems/io/if/open.yml
@@ -1,5 +1,6 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-brief: '%'
+brief: |
+ Opens the device specified by device major and minor number.
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
- Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR)
@@ -12,7 +13,9 @@ definition:
- void *${.:/params[2]/name}
return: ${../../status/if/code:/name}
variants: []
-description: null
+description: |
+ This directive calls the device driver open entry registered in the Device
+ Driver Table for the specified device major number.
enabled-by: true
interface-type: function
links:
@@ -21,18 +24,30 @@ links:
- role: interface-ingroup
uid: group
name: rtems_io_open
-notes: null
+notes: |
+ The open entry point is commonly used by device drivers to provide exclusive
+ access to a device.
params:
-- description: '%'
+- description: |
+ is the major number of the device.
dir: null
name: major
-- description: '%'
+- description: |
+ is the minor number of the device.
dir: null
name: minor
-- description: '%'
+- description: |
+ is the argument passed to the device driver close entry.
dir: null
name: argument
return:
- return: null
- return-values: []
+ return: |
+ Other status codes may be returned by the device driver open routine.
+ return-values:
+ - description: |
+ The requested operation was successful.
+ value: ${../../status/if/successful:/name}
+ - description: |
+ The device major number was invalid.
+ value: ${../../status/if/invalid-number:/name}
type: interface