'\" t .\" Title: blk_queue_alignment_offset .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "BLK_QUEUE_ALIGNMENT_" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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_alignment_offset \- set physical block alignment offset .SH "SYNOPSIS" .HP \w'void\ blk_queue_alignment_offset('u .BI "void blk_queue_alignment_offset(struct\ request_queue\ *\ " "q" ", unsigned\ int\ " "offset" ");" .SH "ARGUMENTS" .PP \fIstruct request_queue * q\fR .RS 4 the request queue for the device .RE .PP \fIunsigned int offset\fR .RS 4 alignment offset in bytes .RE .SH "DESCRIPTION" .PP Some devices are naturally misaligned to compensate for things like the legacy DOS partition table 63\-sector offset\&. Low\-level drivers should call this function for devices whose first sector is not naturally aligned\&. .SH "COPYRIGHT" .br