[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
General Programming Concepts: Writing and Debugging Programs

Trace Hook IDs: 221 through 223

The following trace hook IDs are stored in the /usr/include/sys/trchkid.h file.

221 : HKWD DD SCDISKDD

This event is recorded by the SCSI device driver

Recorded Data

SCDISKDD entry_open: errno: errno devno: devno rwflag: rwflag chan: chan ext: ext

SCDISKDD exit_open: errno: errno devno: devno

SCDISKDD entry_close: errno: errno devno: devno

SCDISKDD exit_close: errno: errno devno: devno

SCDISKDD entry_read: errno: errno devno: devno

SCDISKDD exit_read: errno: errno devno: devno

SCDISKDD entry_write: errno: errno devno: devno

SCDISKDD exit_write: errno: errno devno: devno

SCDISKDD entry_ioctl: errno: errno devno: devno op: ioctl op flag: ioctl flag chan: chan ext: ext

SCDISKDD exit_ioctl: errno: errno devno: devno

SCDISKDD entry_config: errno: errno devno: devno op: config op

SCDISKDD exit_config: errno: errno devno: devno

SCDISKDD entry_strategy: errno: errno devno: devno bp: bp flags: strategy flags block: block bcount: bcount

SCDISKDD exit_strategy: errno: errno devno: devno

SCDISKDD entry_bstart: errno: errno devno: devno bp: bp pblock: pblock bcount: bcount bflags

SCDISKDD exit_bstart: errno: errno devno: devno

SCDISKDD entry_iodone: errno: errno devno: devno

SCDISKDD exit_iodone: errno: errno devno: devno sc_bufp: sc bufp

SCDISKDD coalesce: (bp,sc bp)

SCDISKDD iodone: errno: errno devno: devno bp: bp

errno: errno Error number
devno: devno Major and minor device number
rwflag: rwflag Possible values:
FREAD Device is opened read-only
FWRITE Device is opened read-write.
chan: chan Channel:
For open: always zero
For ioctl: DKERNEL if called by kernel process
ext: ext Extension:
SC_DIAGNOSTIC Open in diagnostic mode
SC_RETAIN_RESERVATION Do not release reservation on close
SC_FORCED_OPEN Reset device before opening.
op: ioctl op Possible values:
IOCINFO Get information about the device
DKIORDSE Issue read command and return sense data if error occurs
DKIOWRSE Issue write command and return sense data if error occurs
DKIOCMD Issue pass-through command (user-defined) to the device.
flag: ioctl flag Address of the user's argument structure
op: config op Possible values:
CFG_INIT Configure the device
CFG_TERM Unconfigure the device.
bp: bp Buffer pointer

flags: strategy flags

block: block

bcount: bcount Number of bytes to be read or written
pblock: pblock Physical block
bflags Buffer flags are defined in the sys/buf.h file
sc_bufp: sc bufp SCSI buffer pointer
(bp, sc bp) Parameters used to issue this command to the SCSI adapter driver:
bp Buffer pointer
sc bp Associated SCSI buffer pointer.

222 : HKWD DD BADISKDD

This event is recorded by the bus-attached hard disk device driver.

Recorded Data

BADDD entry_open: errno: errno devno: devno rwflag: rwflag chan: chan ext: ext

BADDD exit_open: errno: errno devno: devno

BADDD entry_close: errno: errno devno: devno

BADDD exit_close: errno: errno devno: devno

BADDD entry_read: errno: errno devno: devno

BADDD exit_read: errno: errno devno: devno

BADDD entry_write: errno: errno devno: devno

BADDD exit_write: errno: errno devno: devno

BADDD entry_ioctl: errno: errno devno: devno op: ioctl op flag: ioctl flag chan: chan ext: ext

BADDD exit_ioctl: errno: errno devno: devno

BADDD entry_config: errno: errno devno: devno op: config op

BADDD exit_config: errno: errno devno: devno

BADDD entry_strategy: errno: errno devno: devno bp: bp flags: strategy flags block: block bcount: bcount

BADDD exit_strategy: errno: errno devno: devno

BADDD entry_intr: errno: errno devno: devno

BADDD exit_intr: errno: errno devno: devno

BADDD entry_bstart: errno: errno devno: devno bp: bp pblock: pblock bcount: bcount bflags
                         

BADDD exit_bstart: errno: errno devno: devno

errno: errno Error number
devno: devno Major and minor device number
rwflag: rwflag Possible values:
FREAD Device is opened read-only
FWRITE Device is opened read-write.
chan: chan Channel
ext: ext Extension
op: ioctl op
flag: ioctl flag Address of the users argument structure
op: config op Possible values:
CFG_INIT Configure the device
CFG_TERM Unconfigure the device.
bp: bp Buffer pointer
flags: strategy flags Buffer flags field in the buf structure
block: block Physical block
bcount: bcount Number of bytes to read or write
pblock: pblock Physical block
bflags Buffer flags are defined in the sys/buf.h file.

223 : HKWD DD SCSIDD

This event is recorded by the SCSI adapter driver.

Recorded Data

SCSIDD entry_open: errno: errno devno: devno rwflag: rwflag chan: chan ext: ext

SCSIDD exit_open: errno: errno devno: devno

SCSIDD entry_close: errno: errno devno: devno

SCSIDD exit_close: errno: errno devno: devno

SCSIDD entry_read: errno: errno devno: devno

SCSIDD exit_read: errno: errno devno: devno

SCSIDD entry_write: errno: errno devno: devno

SCSIDD exit_write: errno: errno devno: devno

SCSIDD entry_ioctl: errno: errno devno: devno op: ioctl op flag: ioctl flag chan: chan ext: ext

SCSIDD exit_ioctl: errno: errno devno: devno

SCSIDD entry_select: errno: errno devno: devno

SCSIDD exit_select: errno: errno devno: devno

SCSIDD entry_config: errno: errno devno: devno op: config op

SCSIDD exit_config: errno: errno devno: devno

SCSIDD strategy: bp: bp

SCSIDD exit_strategy: errno: errno devno: devno

SCSIDD entry_mpx: errno: errno devno: devno

SCSIDD exit_mpx: errno: errno devno: devno name: name chan: chan oflag: mpx flag

SCSIDD entry_revoke: errno: errno devno: devno

SCSIDD exit_revoke: errno: errno devno: devno

SCSIDD entry_intr: errno: errno devno: devno

SCSIDD exit_intr: errno: errno devno: devno

SCSIDD entry_bstart: device name bp: bp pblock: pblock bcount: bcount bflags

SCSIDD exit_bstart: errno: errno devno: devno

SCSIDD entry_cstart: errno: errno devno: devno

SCSIDD exit_cstart: errno: errno devno: devno

SCSIDD entry_iodone: errno: errno devno: devno

SCSIDD exit_iodone: errno: errno devno: devno

SCSIDD scsi_intr: errno: errno devno: devno sc_bufp: sc bufp

SCSIDD coalesce: (bp,sc bp)

SCSIDD iodone: device name bp: bp filename

errno: errno Error number
devno: devno Major and minor device number
rwflag: rwflag Possible values:
FREAD Device is opened read-only
FWRITE Device is opened read-write.
chan: chan Channel
ext: ext Extension
op: ioctl op ioctl operation
flag: ioctl flag Address of the user's argument structure
op: config op Possible values:
CFG_INIT Configure the device
CFG_TERM Unconfigure the device.
bp: bp Buffer pointer
flags: strategy flags Buffer flags field in the buf structure
block: block Physical block
bcount: bcount Number of bytes to read or write
name: name Path-name extension of multiplex channel to be allocated
oflag: mpx flag
pblock: pblock Physical block
bflags Buffer flags are defined in the sys/buf.h file
sc_bufp: sc bufp
(bp, sc bp) Parameters used to issue this command:
bp Buffer pointer
sc bp Associated SCSI buffer pointer.
filename File path name.

[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]