procedure IO_Initialize ( 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 initialization routine specified in the Device Driver Table for this major number. This directive is automatically invoked for each device driver when multitasking is initiated via the initialize_executive directive.
A device driver initialization module is responsible for initializing all hardware and data structures associated with a device. If necessary, it can allocate memory to be used during other operations.
This directive may or may not cause the calling task to be preempted. This is dependent on the device driver being initialized.
Copyright © 1988-2008 OAR Corporation