函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check whether this bio extends beyond the end of the device or partition.* This may well happen - the kernel calls bread() without checking the size of* the device, e.g., when mounting a file system.

函数原型:static inline int bio_check_eod(struct bio *bio, sector_t maxsector)

返回类型:int

参数:

类型参数名称
struct bio *bio
sector_tmaxsector
826  nr_sectors等于bio_sectors(bio)
828  如果nr_sectorsmaxsectornr_sectors大于maxsector device address in 512 byte sectors 大于maxsectornr_sectors的值则
831  handle_bad_sector(bio, maxsector)
832  返回:负EIO
834  返回:0
调用者
名称描述
blk_partition_remapRemap block n of partition p to block n+start(p) of the disk.
generic_make_request_checks