---
name: "bdev_stack_limits"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bdev_stack_limits"
---

# bdev\_stack\_limits(9)

adjust queue limits for stacked drivers

## NAME

bdev\_stack\_limits - adjust queue limits for stacked drivers

## SYNOPSIS

**int bdev\_stack\_limits(struct queue\_limits \*** *t***, struct block\_device \*** *bdev***, sector\_t** *start***);**

## ARGUMENTS

*t*

the stacking driver limits (top device)

*bdev*

the component block\_device (bottom)

*start*

first data sector within component device

## DESCRIPTION

Merges queue limits for a top device and a block\_device. Returns 0 if alignment didn't change. Returns -1 if adding the bottom device caused misalignment.

## COPYRIGHT
