---
name: "blk_queue_unprep_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_unprep_rq"
---

# blk\_queue\_unprep\_rq(9)

set an unprepare\_request function for queue

## NAME

blk\_queue\_unprep\_rq - set an unprepare\_request function for queue

## SYNOPSIS

**void blk\_queue\_unprep\_rq(struct request\_queue \*** *q***, unprep\_rq\_fn \*** *ufn***);**

## ARGUMENTS

*q*

queue

*ufn*

unprepare\_request function

## DESCRIPTION

It's possible for a queue to register an unprepare\_request callback which is invoked before the request is finally completed. The goal of the function is to deallocate any data that was allocated in the prepare\_request callback.

## COPYRIGHT
