---
name: "blk_queue_make_request"
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/blk_queue_make_request"
---

# blk\_queue\_make\_request(9)

define an alternate make\_request function for a device

## NAME

blk\_queue\_make\_request - define an alternate make\_request function for a device

## SYNOPSIS

**void blk\_queue\_make\_request(struct request\_queue \*** *q***, make\_request\_fn \*** *mfn***);**

## ARGUMENTS

*q*

the request queue for the device to be affected

*mfn*

the alternate make\_request function

## DESCRIPTION

The normal way for struct bios to be passed to a device driver is for them to be collected into requests on a request queue, and then to allow the device driver to select requests off that queue when it is ready. This works well for many block devices. However some block devices (typically virtual devices such as md or lvm) do not benefit from the processing on the request queue, and are served best by having the requests passed directly to them. This can be achieved by providing a function to **blk\_queue\_make\_request**.

Caveat: The driver that does this \*must\* be able to deal appropriately with buffers in “highmemory”. This can be accomplished by either calling **\_\_bio\_kmap\_atomic** to get a temporary kernel mapping, or by calling **blk\_queue\_bounce** to create a buffer in normal memory.

## COPYRIGHT
