table of contents
other versions
- wheezy 3.2.78-1
GET_REQUEST(9) | Block Devices | GET_REQUEST(9) |
NAME¶
get_request - get a free requestSYNOPSIS¶
struct
request * get_request(struct request_queue * q,
int rw_flags,
struct bio * bio,
gfp_t gfp_mask);
ARGUMENTS¶
qrequest_queue to allocate request from
rw_flags
RW and SYNC flags
bio
bio to allocate request for (can be
NULL)
gfp_mask
allocation mask
DESCRIPTION¶
Get a free request from q. This function may fail under memory pressure or if q is dead. Must be callled with q->queue_lock held and, Returns NULL on failure, with q->queue_lock held. Returns !NULL on success, with q->queue_lock *not held*.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |