Function report |
Source Code:block\blk-core.c |
Create Date:2022-07-28 16:59:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static inline int bio_check_eod(struct bio *bio, sector_t maxsector)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bio * | bio | |
sector_t | maxsector |
826 | nr_sectors = bio_sectors(bio) |
828 | If nr_sectors && maxsector && ( nr_sectors > maxsector || device address in 512 byte sectors > maxsector - nr_sectors ) Then |
831 | handle_bad_sector(bio, maxsector) |
832 | Return -EIO |
834 | Return 0 |
Name | Describe |
---|---|
blk_partition_remap | Remap block n of partition p to block n+start(p) of the disk. |
generic_make_request_checks |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |