'\" t .\" Title: bdev_stack_limits .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "BDEV_STACK_LIMITS" "9" "June 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" bdev_stack_limits \- adjust queue limits for stacked drivers .SH "SYNOPSIS" .HP \w'int\ bdev_stack_limits('u .BI "int bdev_stack_limits(struct\ queue_limits\ *\ " "t" ", struct\ block_device\ *\ " "bdev" ", sector_t\ " "start" ");" .SH "ARGUMENTS" .PP \fIstruct queue_limits * t\fR .RS 4 the stacking driver limits (top device) .RE .PP \fIstruct block_device * bdev\fR .RS 4 the component block_device (bottom) .RE .PP \fIsector_t start\fR .RS 4 first data sector within component device .RE .SH "DESCRIPTION" .PP Merges queue limits for a top device and a block_device\&. Returns 0 if alignment didn\*(Aqt change\&. Returns \-1 if adding the bottom device caused misalignment\&. .SH "COPYRIGHT" .br