Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-28 20:14:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dev_read_page() - Start reading a page from a block device*@bdev: The device to read the page from*@sector: The offset on the device to read the page to (need not be aligned)*@page: The page to read* On entry, the page should be locked

Proto:int bdev_read_page(struct block_device *bdev, sector_t sector, struct page *page)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
sector_tsector
struct page *page
702  ops = fops
703  result = -EOPNOTSUPP
705  If Not rw_page || bdev_get_integrity(bdev) Then Return result
708  result = blk_queue_enter(bd_queue, 0)
709  If result Then Return result
711  result = rw_page(bdev, sector + get_start_sect(bdev), page, REQ_OP_READ)
713  blk_queue_exit(bd_queue)
714  Return result
Caller
NameDescribe
do_mpage_readpageThis is the worker routine which does all the work of mapping the disk* blocks and constructs largest possible bios, submits them for IO if the* blocks are not contiguous on the disk