1BDEV_READ_PAGE(9) The Linux VFS BDEV_READ_PAGE(9)
2
3
4
6 bdev_read_page - Start reading a page from a block device
7
9 int bdev_read_page(struct block_device * bdev, sector_t sector,
10 struct page * page);
11
13 bdev
14 The device to read the page from
15
16 sector
17 The offset on the device to read the page to (need not be aligned)
18
19 page
20 The page to read
21
23 On entry, the page should be locked. It will be unlocked when the page
24 has been read. If the block driver implements rw_page synchronously,
25 that will be true on exit from this function, but it need not be.
26
27 Errors returned by this function are usually “soft”, eg out of memory,
28 or queue full; callers should try a different route to read this page
29 rather than propagate an error back up the stack.
30
32 negative errno if an error occurs, 0 if submission was successful.
33
35Kernel Hackers Manual 3.10 June 2019 BDEV_READ_PAGE(9)