函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mpage_alloc

函数原型:static struct bio *mpage_alloc(struct block_device *bdev, sector_t first_sector, int nr_vecs, gfp_t gfp_flags)

返回类型:struct bio

参数:

类型参数名称
struct block_device *bdev
sector_tfirst_sector
intnr_vecs
gfp_tgfp_flags
78  gfp_flags与等于GFP_KERNEL
79  bio等于bio_alloc(gfp_flags, nr_vecs)
81  如果bio恒等于NULLflags按位与Allocating memory
82  当非bionr_vecs除等于2的商循环
83  bio等于bio_alloc(gfp_flags, nr_vecs)
86  如果bio
87  bio_set_dev(bio, bdev)
88  device address in 512 byte sectors 等于first_sector
90  返回:bio
调用者
名称描述
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
__mpage_writepage