Scroll to navigation

__GET_REQUEST(9) Block Devices __GET_REQUEST(9)

NAME

__get_request - get a free request

SYNOPSIS

struct request * __get_request(struct request_list * rl, int rw_flags, struct bio * bio, unsigned int flags);

ARGUMENTS

rl

request list to allocate from

rw_flags

RW and SYNC flags

bio

bio to allocate request for (can be NULL)

flags

-- undescribed --

DESCRIPTION

Get a free request from q. This function may fail under memory pressure or if 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