函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int bdev_read_page(struct block_device *bdev, sector_t sector, struct page *page)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
sector_tsector
struct page *page
702  ops等于fops
703  result等于负EOPNOTSUPP
705  如果非rw_pagebdev_get_integrity(bdev)则返回:result
708  result等于blk_queue_enter(bd_queue, 0)
709  如果result则返回:result
711  result等于rw_page(bdev, sector + get_start_sect(bdev), page, REQ_OP_READ)
713  blk_queue_exit(bd_queue)
714  返回:result
调用者
名称描述
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