1scsi_hba_lookup_capstr(9F)Kernel Functions for Driversscsi_hba_lookup_capstr(9F)
2
3
4
6 scsi_hba_lookup_capstr - return index matching capability string
7
9 #include <sys/scsi/scsi.h>
10
11
12
13 int scsi_hba_lookup_capstr(char *capstr);
14
15
17 Solaris architecture specific (Solaris DDI).
18
20 capstr Pointer to a string
21
22
24 The scsi_hba_lookup_capstr() function attempts to match capstr against
25 a known set of capability strings. If found, the defined index for the
26 matched capability is returned.
27
28
29 The following indices are defined for the capability strings listed
30 below.
31
32 SCSI_CAP_DMA_MAX
33
34 "dma-max" or "dma_max"
35
36
37 SCSI_CAP_MSG_OUT
38
39 "msg-out" or "msg_out"
40
41
42 SCSI_CAP_DISCONNECT
43
44 "disconnect"
45
46
47 SCSI_CAP_SYNCHRONOUS
48
49 "synchronous"
50
51
52 SCSI_CAP_WIDE_XFER
53
54 "wide-xfer" or "wide_xfer"
55
56
57 SCSI_CAP_PARITY
58
59 "parity"
60
61
62 SCSI_CAP_INITIATOR_ID
63
64 "initiator-id"
65
66
67 SCSI_CAP_UNTAGGED_QING
68
69 "untagged-qing"
70
71
72 SCSI_CAP_TAGGED_QING
73
74 "tagged-qing"
75
76
77 SCSI_CAP_ARQ
78
79 "auto-rqsense"
80
81
82 SCSI_CAP_LINKED_CMDS
83
84 "linked-cmds"
85
86
87 SCSI_CAP_SECTOR_SIZE
88
89 "sector-size"
90
91
92 SCSI_CAP_TOTAL_SECTORS
93
94 "total-sectors"
95
96
97 SCSI_CAP_GEOMETRY
98
99 "geometry"
100
101
102 SCSI_CAP_RESET_NOTIFICATION
103
104 "reset-notification"
105
106
107 SCSI_CAP_QFULL_RETRIES
108
109 "qfull-retries"
110
111
112 SCSI_CAP_QFULL_RETRY_INTERVAL
113
114 "qfull-retry-interval"
115
116
117 SCSI_CAP_LUN_RESET
118
119 "lun-reset"
120
121
122 SCSI_CAP_CDB_LEN
123
124 "max-cdb-length"
125
126
128 The scsi_hba_lookup_capstr() function returns a non-negative index
129 value that corresponds to the capability string. If the string does not
130 match a known capability, -1 is returned.
131
133 The scsi_hba_lookup_capstr() function can be called from user, inter‐
134 rupt, or kernel context.
135
137 See attributes(5) for descriptions of the following attributes:
138
139
140
141
142 ┌─────────────────────────────┬─────────────────────────────┐
143 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
144 ├─────────────────────────────┼─────────────────────────────┤
145 │Interface Stability │Committed │
146 └─────────────────────────────┴─────────────────────────────┘
147
149 tran_getcap(9E), tran_setcap(9E), scsi_ifgetcap(9F), scsi_ifsetcap(9F),
150 scsi_reset_notify(9F)
151
152
153 Writing Device Drivers
154
155
156
157SunOS 5.11 13 May 2006 scsi_hba_lookup_capstr(9F)