other versions
BDEV_READ_PAGE(9) | The Linux VFS | BDEV_READ_PAGE(9) |
NAME¶
bdev_read_page - Start reading a page from a block deviceSYNOPSIS¶
int bdev_read_page(struct block_device * bdev, sector_t sector, struct page * page);
ARGUMENTS¶
struct block_device * bdevThe device to read the page from
sector_t sector
The offset on the device to read the page to (need not be
aligned)
struct page * page
The page to read
DESCRIPTION¶
On entry, the page should be locked. It will be unlocked when the page has been read. If the block driver implements rw_page synchronously, that will be true on exit from this function, but it need not be.Errors returned by this function are usually “soft”, eg out of memory, or queue full; callers should try a different route to read this page rather than propagate an error back up the stack.
RETURN¶
negative errno if an error occurs, 0 if submission was successful.COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |