procedure IO_Control ( Major : in RTEMS.Device_Major_Number; Minor : in RTEMS.Device_Minor_Number; Argument : in RTEMS.Address; Result : out RTEMS.Status_Codes );
RTEMS.SUCCESSFUL
- successfully initialized
RTEMS.INVALID_NUMBER
- invalid major device number
This directive calls the device driver I/O control routine specified in the Device Driver Table for this major number. The exact functionality of the driver entry called by this directive is driver dependent. It should not be assumed that the control entries of two device drivers are compatible. For example, an RS-232 driver I/O control operation may change the baud rate of a serial line, while an I/O control operation for a floppy disk driver may cause a seek operation.
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