SCSI_LOG(9F) | Kernel Functions for Drivers | SCSI_LOG(9F) |
scsi_log - display a SCSI-device-related message
#include <sys/scsi/scsi.h>
#include <sys/cmn_err.h> void scsi_log(dev_info_t *dip, char *drv_name, uint_t level,
const char *fmt, ...);
illumos DDI specific (illumos DDI).
dip
drv_name
level
fmt
The scsi_log() function is a utility function that displays a message via the cmn_err(9F) routine. The error levels that can be passed in to this function are CE_PANIC, CE_WARN, CE_NOTE, CE_CONT, and SCSI_DEBUG. The last level is used to assist in displaying debug messages to the console only. drv_name is the short name by which this device is known; example disk driver names are sd and cmdk. If the dev_info_t pointer is NULL, then the drv_name will be used with no unit or long name.
If the first character in format is:
All formatting conversions in use by cmn_err() also work with scsi_log().
The scsi_log() function may be called from user, interrupt, or kernel context.
sd(4D), kernel(8), cmn_err(9F), scsi_errmsg(9F)
Writing Device Drivers
January 16, 2006 | OmniOS |