函数逻辑报告 |
Source Code:block\blk-lib.c |
Create Date:2022-07-27 18:42:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lkdev_issue_zeroout - zero-fill a block range*@bdev: blockdev to write*@sector: start sector*@nr_sects: number of sectors to write*@gfp_mask: memory allocation flags (for bio_alloc)*@flags: controls detailed behavior* Description:* Zero-fill a block
函数原型:int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct block_device * | bdev | |
sector_t | sector | |
sector_t | nr_sects | |
gfp_t | gfp_mask | |
unsigned | flags |
361 | ret等于0 |
367 | bs_mask等于bdev_logical_block_size(bdev)右移9位的值减1 |
371 | retry : |
372 | bio = NULL |
374 | 如果try_write_zeroes则 |
377 | 否则如果非flags按位与don't write explicit zeroes 的值则 |
380 | 否则 |
382 | ret等于负EOPNOTSUPP |
389 | 如果ret且try_write_zeroes则 |
390 | 如果非flags按位与don't write explicit zeroes 的值则 |
391 | try_write_zeroes = false |
392 | 转到:retry |
394 | 如果非bdev_write_zeroes_sectors(bdev)则 |
401 | ret等于负EOPNOTSUPP |
405 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |