rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument );
RTEMS_SUCCESSFUL
- successfully initialized
RTEMS_INVALID_NUMBER
- invalid major device number
This directive calls the device driver read routine specified in the Device Driver Table for this major number. Read operations typically require a buffer address as part of the argument parameter block. The contents of this buffer will be replaced with data from the device.
This directive may or may not cause the calling task to be preempted. This is dependent on the device driver being invoked.
Copyright © 1988-2008 OAR Corporation