@@ -37,7 +37,7 @@ ISA adapters).]
37
37
The SCSI mid level isolates an LLD from other layers such as the SCSI
38
38
upper layer drivers and the block layer.
39
39
40
- This version of the document roughly matches linux kernel version 2.6.8 .
40
+ This version of the document roughly matches Linux kernel version 2.6.8 .
41
41
42
42
Documentation
43
43
=============
@@ -48,7 +48,7 @@ found in that directory. A more recent copy of this document may be found
48
48
at https://docs.kernel.org/scsi/scsi_mid_low_api.html. Many LLDs are
49
49
documented in Documentation/scsi (e.g. aic7xxx.rst). The SCSI mid-level is
50
50
briefly described in scsi.rst which contains a URL to a document describing
51
- the SCSI subsystem in the Linux Kernel 2.4 series. Two upper level
51
+ the SCSI subsystem in the Linux kernel 2.4 series. Two upper level
52
52
drivers have documents in that directory: st.rst (SCSI tape driver) and
53
53
scsi-generic.rst (for the sg driver).
54
54
@@ -75,7 +75,7 @@ It is probably best to study how existing LLDs are organized.
75
75
As the 2.5 series development kernels evolve into the 2.6 series
76
76
production series, changes are being introduced into this interface. An
77
77
example of this is driver initialization code where there are now 2 models
78
- available. The older one, similar to what was found in the lk 2.4 series,
78
+ available. The older one, similar to what was found in the Linux 2.4 series,
79
79
is based on hosts that are detected at HBA driver load time. This will be
80
80
referred to the "passive" initialization model. The newer model allows HBAs
81
81
to be hot plugged (and unplugged) during the lifetime of the LLD and will
@@ -1026,7 +1026,7 @@ initialized from the driver's struct scsi_host_template instance. Members
1026
1026
of interest:
1027
1027
1028
1028
host_no
1029
- - system wide unique number that is used for identifying
1029
+ - system- wide unique number that is used for identifying
1030
1030
this host. Issued in ascending order from 0.
1031
1031
can_queue
1032
1032
- must be greater than 0; do not send more than can_queue
@@ -1053,7 +1053,7 @@ of interest:
1053
1053
- pointer to driver's struct scsi_host_template from which
1054
1054
this struct Scsi_Host instance was spawned
1055
1055
hostt->proc_name
1056
- - name of LLD. This is the driver name that sysfs uses
1056
+ - name of LLD. This is the driver name that sysfs uses.
1057
1057
transportt
1058
1058
- pointer to driver's struct scsi_transport_template instance
1059
1059
(if any). FC and SPI transports currently supported.
@@ -1067,7 +1067,7 @@ The scsi_host structure is defined in include/scsi/scsi_host.h
1067
1067
struct scsi_device
1068
1068
------------------
1069
1069
Generally, there is one instance of this structure for each SCSI logical unit
1070
- on a host. Scsi devices connected to a host are uniquely identified by a
1070
+ on a host. SCSI devices connected to a host are uniquely identified by a
1071
1071
channel number, target id and logical unit number (lun).
1072
1072
The structure is defined in include/scsi/scsi_device.h
1073
1073
@@ -1091,7 +1091,7 @@ Members of interest:
1091
1091
- should be set by LLD prior to calling 'done'. A value
1092
1092
of 0 implies a successfully completed command (and all
1093
1093
data (if any) has been transferred to or from the SCSI
1094
- target device). 'result' is a 32 bit unsigned integer that
1094
+ target device). 'result' is a 32- bit unsigned integer that
1095
1095
can be viewed as 2 related bytes. The SCSI status value is
1096
1096
in the LSB. See include/scsi/scsi.h status_byte() and
1097
1097
host_byte() macros and related constants.
@@ -1180,8 +1180,8 @@ may get out of synchronization. This is why it is best for the LLD
1180
1180
to perform autosense.
1181
1181
1182
1182
1183
- Changes since lk 2.4 series
1184
- ===========================
1183
+ Changes since Linux kernel 2.4 series
1184
+ =====================================
1185
1185
io_request_lock has been replaced by several finer grained locks. The lock
1186
1186
relevant to LLDs is struct Scsi_Host::host_lock and there is
1187
1187
one per SCSI host.
0 commit comments