---
name: "blk_limits_max_hw_sectors"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/blk_limits_max_hw_sectors"
---

# blk\_limits\_max\_hw\_sectors(9)

set hard and soft limit of max sectors for request

## NAME

blk\_limits\_max\_hw\_sectors - set hard and soft limit of max sectors for request

## SYNOPSIS

**void blk\_limits\_max\_hw\_sectors(struct queue\_limits \*** *limits***, unsigned int** *max\_hw\_sectors***);**

## ARGUMENTS

*limits*

the queue limits

*max\_hw\_sectors*

max hardware sectors in the usual 512b unit

## DESCRIPTION

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.

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/\<device\>/queue/max\_sectors\_kb. The soft limit can not exceed max\_hw\_sectors.

## COPYRIGHT
