1. NAME▲

blk_fetch_request - fetch a request from a request queue

2. SYNOPSIS ▲

struct request * blk_fetch_request(struct request_queue *  q );

3. ARGUMENTS ▲

q
    request queue to fetch a request from

4. DESCRIPTION ▲

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

5. RETURN ▲

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

6. CONTEXT ▲

queue_lock must be held.

7. COPYRIGHT ▲