1. NAME

blk_peek_request - peek at the top of a request queue

2. SYNOPSIS

struct request * blk_peek_request(struct request_queue *  q );

3. ARGUMENTS

q
    request queue to peek at

4. DESCRIPTION

Return the request at the top of q. The returned request should be started using blk_start_request before LLD starts processing it.

5. RETURN

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

6. CONTEXT

queue_lock must be held.

7. COPYRIGHT