函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-lib.c Create Date:2022-07-27 18:42:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Convert a number of 512B sectors to a number of pages.* The result is limited to a number of pages that can fit into a BIO.* Also make sure that the result is always at least 1 (page) for the cases

函数原型:static unsigned int __blkdev_sectors_to_bio_pages(sector_t nr_sects)

返回类型:unsigned int

参数:

类型参数名称
sector_tnr_sects
263  pages等于DIV_ROUND_UP_SECTOR_T(nr_sects, PAGE_SIZE / 512)
265  返回:两数取小(pages, (sector_t)BIO_MAX_PAGES)
调用者
名称描述
__blkdev_issue_zero_pages