#include <sys/scsi/scsi.h> int scsi_hba_lookup_capstr(char *capstr);
Solaris architecture specific (Solaris DDI).
Pointer to a string
The scsi_hba_lookup_capstr() function attempts to match capstr against a known set of capability strings. If found, the defined index for the matched capability is returned.
The following indices are defined for the capability strings listed below.
“dma-max” or “dma_max”
“msg-out” or “msg_out”
“disconnect”
“synchronous”
“wide-xfer” or “wide_xfer”
“parity”
“initiator-id”
“untagged-qing”
“tagged-qing”
“auto-rqsense”
“linked-cmds”
“sector-size”
“total-sectors”
“geometry”
“reset-notification”
“qfull-retries”
“qfull-retry-interval”
“lun-reset”
“max-cdb-length”
“tran-layer-retries”
The scsi_hba_lookup_capstr() function returns a non-negative index value that corresponds to the capability string. If the string does not match a known capability, –1 is returned.
The scsi_hba_lookup_capstr() function can be called from user, interrupt, or kernel context.
See attributes(5) for descriptions of the following attributes:
|
tran_getcap(9E), tran_setcap(9E) , scsi_ifgetcap(9F), scsi_ifsetcap(9F), scsi_reset_notify(9F)