1BLK_UPDATE_REQUEST(9) Block Devices BLK_UPDATE_REQUEST(9)
2
3
4
6 blk_update_request - Special helper function for request stacking
7 drivers
8
10 bool blk_update_request(struct request * req, int error,
11 unsigned int nr_bytes);
12
14 req
15 the request being processed
16
17 error
18 0 for success, < 0 for error
19
20 nr_bytes
21 number of bytes to complete req
22
24 Ends I/O on a number of bytes attached to req, but doesn't complete the
25 request structure even if req doesn't have leftover. If req has
26 leftover, sets it up for the next range of segments.
27
28 This special helper function is only for request stacking drivers (e.g.
29 request-based dm) so that they can handle partial completion. Actual
30 device drivers should use blk_end_request instead.
31
32 Passing the result of blk_rq_bytes as nr_bytes guarantees false return
33 from this function.
34
36 false - this request doesn't have any more data true - this request has
37 more data
38
40Kernel Hackers Manual 3.10 June 2019 BLK_UPDATE_REQUEST(9)