函数逻辑报告 |
Source Code:block\blk-lib.c |
Create Date:2022-07-27 18:42:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__blkdev_issue_write_same - generate number of bios with same page*@bdev: target blockdev*@sector: start sector*@nr_sects: number of sectors to write*@gfp_mask: memory allocation flags (for bio_alloc)*@page: page containing data to write*@biop: pointer to
函数原型:static int __blkdev_issue_write_same(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct page *page, struct bio **biop)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct block_device * | bdev | |
| sector_t | sector | |
| sector_t | nr_sects | |
| gfp_t | gfp_mask | |
| struct page * | page | |
| struct bio ** | biop |
| 135 | q等于bdev_get_queue(bdev) |
| 143 | 如果bdev_read_only(bdev)则返回:负EPERM |
| 146 | bs_mask等于bdev_logical_block_size(bdev)右移9位的值减1 |
| 150 | 如果非bdev_write_same(bdev)则返回:负EOPNOTSUPP |
| 157 | bio等于blk_next_bio(bio, 1, gfp_mask) |
| 159 | bio_set_dev(bio, bdev) |
| 160 | how many bio_vec's 等于1 |
| 162 | bv_offset等于0 |
| 166 | 如果nr_sects大于max_write_same_sectors则 |
| 167 | residual I/O count 等于max_write_same_sectors左移9位 |
| 169 | sector加等于max_write_same_sectors |
| 170 | 否则 |
| 171 | residual I/O count 等于nr_sects左移9位 |
| 172 | nr_sects等于0 |
| 174 | cond_resched() |
| 178 | 返回:0 |
| 名称 | 描述 |
|---|---|
| blkdev_issue_write_same | lkdev_issue_write_same - queue a write same operation*@bdev: target blockdev*@sector: start sector*@nr_sects: number of sectors to write*@gfp_mask: memory allocation flags (for bio_alloc)*@page: page containing data* Description: |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |