RTEMS Logo

RTEMS 4.9.0 On-Line Library


RTEMS Specific Commands driver - display the rtems device driver table

PREV UP NEXT Bookshelf RTEMS Shell User's Guide

5.2.14: driver - display the rtems device driver table

SYNOPSYS:

driver [ major [ major ... ] ]

DESCRIPTION:

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.

EXIT STATUS:

This command returns 0 on success and non-zero if an error is encountered.

NOTES:

NONE

EXAMPLES:

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 [/] $

CONFIGURATION:

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.

PROGRAMMING INFORMATION:

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;


PREV UP NEXT Bookshelf RTEMS Shell User's Guide

Copyright © 1988-2008 OAR Corporation