blob: 8125021c431bb7f0976f97b8a7cb86c4a5c230cd (
plain) (
tree)
|
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
Closes the device specified by the device major and minor numbers.
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
- Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR)
definition:
default:
attributes: null
body: null
params:
- ${device-major-number:/name} ${.:/params[0]/name}
- ${device-minor-number:/name} ${.:/params[1]/name}
- void *${.:/params[2]/name}
return: ${../../status/if/code:/name}
variants: []
description: |
This directive calls the device driver close entry registered in the Device
Driver Table for the specified device major number.
enabled-by: true
index-entries:
- close a device
interface-type: function
links:
- role: interface-placement
uid: header
- role: interface-ingroup
uid: group
name: rtems_io_close
notes: |
The close entry point is commonly used by device drivers to relinquish
exclusive access to a device.
params:
- description: |
is the major number of the device.
dir: null
name: major
- description: |
is the minor number of the device.
dir: null
name: minor
- description: |
is the argument passed to the device driver close entry.
dir: null
name: argument
return:
return: |
Other status codes may be returned by the device driver close entry.
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
|