DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

NAME

device - Display the device structure

SYNOPSIS

device a

DESCRIPTION

The device macro takes one argument a pointer to a device structure. It displays the device registers and the last known configuration.

The structure is defined in /usr/include/sys/serial.h.

To obtain the array of pointers to device structures use:

  S>dl ser_addr
  ser_addr:  C11D0CE8 C11D0D24 C11D0D60 00000000  ....$...`.......
Typical output looks like this:
  S> device C11D0CE8
  [C11D0CE8]  flow 00:
    cflag     0000: B0 CS5
    modem     00: TX5
    txcnt:    00000000        cmdad: 000003FB
    txptr:    00000000        datad: 000003F8  vector: 0004 ATBUSINTVEC4
    p_proc:   C10C9940(parm8250)
    c_proc:   C10C9D30(pc_baudproc)
    tx:       C10CA07A(onb0tx)   rx: C10CA073(onb0rx)
    ex:       C10CA07E(onb0ex)   sr: C10CA085(onb0sr)  ir: C10CA104(onb0intr)

DEFINED IN

device.k

SEE ALSO

sertty

APPENDIX A: Alphabetic Index of Macros