devsw subcommand
The devsw subcommand displays device switch table entries.
Format
devsw [major | address]
Parameters
Item | Description |
---|---|
major | Indicates the specific device switch table entry to be displayed by the major number. This is a hexadecimal value. |
address | Specifies the effective address of a driver. The device switch table entry with the driver closest to the indicated address is displayed. The specific driver is indicated. Symbols, hexadecimal values, or hexadecimal expressions can be used to specify the address. |
Other
dev
Examples
The following is an example of how to use the dev alias for the devsw subcommand:
KDB(0)> dev
Slot address 054F5040
MAJ#001 OPEN CLOSE READ WRITE
.syopen .nulldev .syread .sywrite
IOCTL STRATEGY TTY SELECT
.syioctl .nodev 00000000 .syselect
CONFIG PRINT DUMP MPX
.nodev .nodev .nodev .nodev
REVOKE DSDPTR SELPTR OPTS
.nodev 00000000 00000000 00000002
Slot address 054F5080
MAJ#002 OPEN CLOSE READ WRITE
.nulldev .nulldev .mmread .mmwrite
IOCTL STRATEGY TTY SELECT
.nodev .nodev 00000000 .nodev
CONFIG PRINT DUMP MPX
.nodev .nodev .nodev .nodev
REVOKE DSDPTR SELPTR OPTS
.nodev 00000000 00000000 00000002
(0)> more (^C to quit) ? ^C //quit
KDB(0)> devsw 4 //device switch of major 0x4
Slot address 05640100
MAJ#004 OPEN CLOSE READ WRITE
.conopen .conclose .conread .conwrite
IOCTL STRATEGY TTY SELECT
.conioctl .nodev 00000000 .conselect
CONFIG PRINT DUMP MPX
.conconfig .nodev .nodev .conmpx
REVOKE DSDPTR SELPTR OPTS
.conrevoke 00000000 00000000 00000006