Skip to content

Commit 0c766e7

Browse files
bvanasscheaxboe
authored andcommitted
block, documentation: Explain the word 'segments'
Several block layer users who are not kernel developers do not know that the word 'segment' refers to an element in a DMA scatter/gather list. Make the block layer documentation easier to understand by stating explicitly what the word 'segment' stands for. Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 6728ac3 commit 0c766e7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎Documentation/block/queue-sysfs.txt‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ This is the maximum number of kilobytes supported in a single data transfer.
9898

9999
max_integrity_segments (RO)
100100
---------------------------
101-
When read, this file shows the max limit of integrity segments as
102-
set by block layer which a hardware controller can handle.
101+
Maximum number of elements in a DMA scatter/gather list with integrity
102+
data that will be submitted by the block layer core to the associated
103+
block driver.
103104

104105
max_sectors_kb (RW)
105106
-------------------
@@ -109,11 +110,12 @@ size allowed by the hardware.
109110

110111
max_segments (RO)
111112
-----------------
112-
Maximum number of segments of the device.
113+
Maximum number of elements in a DMA scatter/gather list that is submitted
114+
to the associated block driver.
113115

114116
max_segment_size (RO)
115117
---------------------
116-
Maximum segment size of the device.
118+
Maximum size in bytes of a single element in a DMA scatter/gather list.
117119

118120
minimum_io_size (RO)
119121
--------------------

0 commit comments

Comments
 (0)