driver [ major [ major ... ] ]
When invoked with no arguments, this command prints information on the set of Device Drivers currently active in the system.
If invoked with a set of major numbers as arguments, then just those Device Drivers are included in the information printed.
This command returns 0 on success and non-zero if an error is encountered.
NONE
The following is an example of how to use driver
:
SHLL [/] $ driver Major Entry points ------------------------------------------------------------------------------ 0 init: [0x200256c]; control: [0x20024c8] open: [0x2002518]; close: [0x2002504] read: [0x20024f0]; write: [0x20024dc] 1 init: [0x20023fc]; control: [0x2002448] open: [0x0]; close: [0x0] read: [0x0]; write: [0x0] SHLL [/] $
This command is included in the default shell command set.
When building a custom command set, define
CONFIGURE_SHELL_COMMAND_DRIVER
to have this
command included.
This command can be excluded from the shell command set by
defining CONFIGURE_SHELL_NO_COMMAND_DRIVER
when all
shell commands have been configured.
The driver
is implemented by a C language function
which has the following prototype:
int rtems_shell_rtems_main_driver( int argc, char **argv );
The configuration structure for the driver
has the
following prototype:
extern rtems_shell_cmd_t rtems_shell_DRIVER_Command;
Copyright © 1988-2008 OAR Corporation