---
name: "blk_peek_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_peek_request"
---

# blk\_peek\_request(9)

peek at the top of a request queue

## NAME

blk\_peek\_request - peek at the top of a request queue

## SYNOPSIS

**struct request \* blk\_peek\_request(struct request\_queue \*** *q***);**

## ARGUMENTS

*q*

request queue to peek at

## DESCRIPTION

Return the request at the top of *q*. The returned request should be started using **blk\_start\_request** before LLD starts processing it.

## RETURN

Pointer to the request at the top of *q* if available. Null otherwise.

## CONTEXT

queue\_lock must be held.

## COPYRIGHT
