Function report |
Source Code:block\blk-lib.c |
Create Date:2022-07-28 17:07:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static unsigned int __blkdev_sectors_to_bio_pages(sector_t nr_sects)
Type:unsigned int
Parameter:
Type | Parameter | Name |
---|---|---|
sector_t | nr_sects |
263 | pages = DIV_ROUND_UP_SECTOR_T(nr_sects, PAGE_SIZE / 512) |
265 | Return min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(pages, (sector_t)BIO_MAX_PAGES) |
Name | Describe |
---|---|
__blkdev_issue_zero_pages |
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 |