'\" t .\" Title: blk_queue_chunk_sectors .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "BLK_QUEUE_CHUNK_SECT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_queue_chunk_sectors \- set size of the chunk for this queue .SH "SYNOPSIS" .HP \w'void\ blk_queue_chunk_sectors('u .BI "void blk_queue_chunk_sectors(struct\ request_queue\ *\ " "q" ", unsigned\ int\ " "chunk_sectors" ");" .SH "ARGUMENTS" .PP \fIq\fR .RS 4 the request queue for the device .RE .PP \fIchunk_sectors\fR .RS 4 chunk sectors in the usual 512b unit .RE .SH "DESCRIPTION" .PP If a driver doesn\*(Aqt want IOs to cross a given chunk size, it can set this limit and prevent merging across chunks\&. Note that the chunk size must currently be a power\-of\-2 in sectors\&. Also note that the block layer must accept a page worth of data at any offset\&. So if the crossing of chunks is a hard limitation in the driver, it must still be prepared to split single page bios\&. .SH "COPYRIGHT" .br