1BLK_UPDATE_REQUEST(9)            Block Devices           BLK_UPDATE_REQUEST(9)
2
3
4

NAME

6       blk_update_request - Special helper function for request stacking
7       drivers
8

SYNOPSIS

10       bool blk_update_request(struct request * req, int error,
11                               unsigned int nr_bytes);
12

ARGUMENTS

14       req
15           the request being processed
16
17       error
18
19           0 for success, < 0 for error
20
21       nr_bytes
22           number of bytes to complete req
23

DESCRIPTION

25       Ends I/O on a number of bytes attached to req, but doesn´t complete the
26       request structure even if req doesn´t have leftover. If req has
27       leftover, sets it up for the next range of segments.
28
29       This special helper function is only for request stacking drivers (e.g.
30       request-based dm) so that they can handle partial completion. Actual
31       device drivers should use blk_end_request instead.
32
33       Passing the result of blk_rq_bytes as nr_bytes guarantees false return
34       from this function.
35

RETURN

37       false - this request doesn´t have any more data true - this request has
38       more data
39
41Kernel Hackers Manual 2.6.         June 2019             BLK_UPDATE_REQUEST(9)
Impressum