RTEMS
Classes | Typedefs | Functions
io.h File Reference

This header file defines the IO Manager API. More...

#include <stdint.h>
#include <rtems/rtems/status.h>

Go to the source code of this file.

Classes

struct  rtems_driver_address_table
 This structure contains the device driver entries. More...
 

Typedefs

typedef uint32_t rtems_device_minor_number
 This integer type represents the minor number of devices. More...
 
typedef uint32_t rtems_device_major_number
 This integer type represents the major number of devices. More...
 
typedef rtems_status_code rtems_device_driver
 This type shall be used in device driver entry declarations and definitions. More...
 
typedef rtems_device_driver(* rtems_device_driver_entry) (rtems_device_major_number, rtems_device_minor_number, void *)
 Device driver entries shall have this type.
 

Functions

rtems_status_code rtems_io_close (rtems_device_major_number major, rtems_device_minor_number minor, void *argument)
 Closes the device specified by the device major and minor numbers. More...
 
rtems_status_code rtems_io_control (rtems_device_major_number major, rtems_device_minor_number minor, void *argument)
 Controls the device specified by the device major and minor numbers. More...
 
rtems_status_code rtems_io_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *argument)
 Initializes the device specified by the device major and minor numbers. More...
 
rtems_status_code rtems_io_open (rtems_device_major_number major, rtems_device_minor_number minor, void *argument)
 Opens the device specified by the device major and minor numbers. More...
 
rtems_status_code rtems_io_read (rtems_device_major_number major, rtems_device_minor_number minor, void *argument)
 Reads from the device specified by the device major and minor numbers. More...
 
rtems_status_code rtems_io_register_driver (rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major)
 Registers and initializes the device with the specified device driver address table and device major number in the Device Driver Table. More...
 
rtems_status_code rtems_io_register_name (const char *device_name, rtems_device_major_number major, rtems_device_minor_number minor)
 Registers the device specified by the device major and minor numbers in the file system under the specified name. More...
 
rtems_status_code rtems_io_unregister_driver (rtems_device_major_number major)
 Removes a device driver specified by the device major number from the Device Driver Table. More...
 
rtems_status_code rtems_io_write (rtems_device_major_number major, rtems_device_minor_number minor, void *argument)
 Writes to the device specified by the device major and minor numbers. More...
 

Detailed Description

This header file defines the IO Manager API.

Definition in file io.h.