1GET_REQUEST(9) Block Devices GET_REQUEST(9)
2
3
4
6 get_request - get a free request
7
9 struct request * get_request(struct request_queue * q, int rw_flags,
10 struct bio * bio, unsigned int flags);
11
13 q
14 request_queue to allocate request from
15
16 rw_flags
17 RW and SYNC flags
18
19 bio
20 bio to allocate request for (can be NULL)
21
22 flags
23 BLQ_MQ_REQ_* flags.
24
26 Get a free request from q. If __GFP_WAIT is set in gfp_mask, this
27 function keeps retrying under memory pressure and fails iff q is dead.
28
29 Must be called with q->queue_lock held and, Returns ERR_PTR on failure,
30 with q->queue_lock held. Returns request pointer on success, with
31 q->queue_lock *not held*.
32
34Kernel Hackers Manual 3.10 June 2019 GET_REQUEST(9)