---
name: "__blk_drain_queue"
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_drain_queue"
---

# \_\_blk\_drain\_queue(9)

drain requests from request\_queue

## NAME

\_\_blk\_drain\_queue - drain requests from request\_queue

## SYNOPSIS

**void \_\_blk\_drain\_queue(struct request\_queue \*** *q***, bool** *drain\_all***);**

## ARGUMENTS

*q*

queue to drain

*drain\_all*

whether to drain all requests or only the ones w/ ELVPRIV

## DESCRIPTION

Drain requests from *q*. If *drain\_all* is set, all requests are drained. If not, only ELVPRIV requests are drained. The caller is responsible for ensuring that no new requests which need to be drained are queued.

## COPYRIGHT
