'\" t .\" Title: blk_limits_max_hw_sectors .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "BLK_LIMITS_MAX_HW_SE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Block Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" blk_limits_max_hw_sectors \- set hard and soft limit of max sectors for request .SH "SYNOPSIS" .HP \w'void\ blk_limits_max_hw_sectors('u .BI "void blk_limits_max_hw_sectors(struct\ queue_limits\ *\ " "limits" ", unsigned\ int\ " "max_hw_sectors" ");" .SH "ARGUMENTS" .PP \fIlimits\fR .RS 4 the queue limits .RE .PP \fImax_hw_sectors\fR .RS 4 max hardware sectors in the usual 512b unit .RE .SH "DESCRIPTION" .PP Enables a low level driver to set a hard upper limit, max_hw_sectors, on the size of requests\&. max_hw_sectors is set by the device driver based upon the combined capabilities of I/O controller and storage device\&. .PP max_sectors is a soft limit imposed by the block layer for filesystem type requests\&. This value can be overridden on a per\-device basis in /sys/block//queue/max_sectors_kb\&. The soft limit can not exceed max_hw_sectors\&. .SH "COPYRIGHT" .br