table of contents
GET_REQUEST(9) | Block Devices | GET_REQUEST(9) |
NAME¶
get_request - get a free request
SYNOPSIS¶
struct request * get_request(struct request_queue * q, int rw_flags, struct bio * bio, unsigned int flags);
ARGUMENTS¶
q
request_queue to allocate request from
rw_flags
RW and SYNC flags
bio
bio to allocate request for (can be NULL)
flags
BLQ_MQ_REQ_* flags.
DESCRIPTION¶
Get a free request from q. If __GFP_WAIT is set in gfp_mask, this function keeps retrying under memory pressure and fails iff 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*.
COPYRIGHT¶
June 2024 | Kernel Hackers Manual 3.10 |