blk_fetch_request
Prev | Chapter 14. Block Devices | Next

## Name

blk_fetch_request — fetch a request from a request queue

## Synopsis

`struct request * blk_fetch_request (` | struct request_queue * q`)`;

## Arguments

`q`

  request queue to fetch a request from

## Description

Return the request at the top of `q`. The request is started on return and LLD can start processing it immediately.

## Return

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

## Context

queue_lock must be held.

Prev | Up | Next
blk_start_request | Home | blk_update_request