RTEMS Logo

RTEMS 4.9.1 On-Line Library


I/O Manager IO_WRITE - Write to a device

PREV UP NEXT Bookshelf RTEMS C User's Guide

16.4.9: IO_WRITE - Write to a device

CALLING SEQUENCE:

rtems_status_code rtems_io_write(
  rtems_device_major_number  major,
  rtems_device_minor_number  minor,
  void                      *argument
);

DIRECTIVE STATUS CODES:

RTEMS_SUCCESSFUL - successfully initialized
RTEMS_INVALID_NUMBER - invalid major device number

DESCRIPTION:

This directive calls the device driver write routine specified in the Device Driver Table for this major number. Write operations typically require a buffer address as part of the argument parameter block. The contents of this buffer will be sent to the device.

NOTES:

This directive may or may not cause the calling task to be preempted. This is dependent on the device driver being invoked.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2008 OAR Corporation