__get_request(9)

__get_request9

Get a free request

Usage

struct request * __get_request(struct request_list * rl, int op, int op_flags, struct bio * bio, gfp_t gfp_mask);

Arguments

rl

request list to allocate from

op

REQ_OP_READ/REQ_OP_WRITE

op_flags

rq_flag_bits

bio

bio to allocate request for (can be NULL)

gfp_mask

allocation mask

Overview

Get a free request from q. This function may fail under memory pressure or if q is dead.

Must be called with q->queue_lock held and, Returns ERR_PTR on failure, with q->queue_lock held. Returns request pointer on success, with q->queue_lock *not held*.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.