---
name: "blk_queue_prep_rq"
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_prep_rq"
---

# blk\_queue\_prep\_rq(9)

set a prepare\_request function for queue

## NAME

blk\_queue\_prep\_rq - set a prepare\_request function for queue

## SYNOPSIS

**void blk\_queue\_prep\_rq(struct request\_queue \*** *q***, prep\_rq\_fn \*** *pfn***);**

## ARGUMENTS

*q*

queue

*pfn*

prepare\_request function

## DESCRIPTION

It's possible for a queue to register a prepare\_request callback which is invoked before the request is handed to the request\_fn. The goal of the function is to prepare a request for I/O, it can be used to build a cdb from the request data for instance.

## COPYRIGHT
