函数逻辑报告 |
Source Code:block\blk-lib.c |
Create Date:2022-07-27 18:42:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__blkdev_issue_discard
函数原型:int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, int flags, struct bio **biop)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct block_device * | bdev | |
sector_t | sector | |
sector_t | nr_sects | |
gfp_t | gfp_mask | |
int | flags | |
struct bio ** | biop |
29 | q等于bdev_get_queue(bdev) |
37 | 如果bdev_read_only(bdev)则返回:负EPERM |
40 | 如果flags按位与ssue a secure erase 则 |
41 | 如果非blk_queue_secure_erase(q)则返回:负EOPNOTSUPP |
44 | 否则 |
45 | 如果非blk_queue_discard(q)则返回:负EOPNOTSUPP |
47 | op等于REQ_OP_DISCARD |
50 | bs_mask等于bdev_logical_block_size(bdev)右移9位的值减1 |
61 | WARN_ON_ONCE((req_sects << 9) > UINT_MAX) |
63 | bio等于blk_next_bio(bio, 0, gfp_mask) |
65 | bio_set_dev(bio, bdev) |
68 | residual I/O count 等于req_sects左移9位 |
78 | cond_resched() |
82 | 返回:0 |
名称 | 描述 |
---|---|
blkdev_issue_discard | lkdev_issue_discard - queue a discard*@bdev: blockdev to issue discard for*@sector: start sector*@nr_sects: number of sectors to discard*@gfp_mask: memory allocation flags (for bio_alloc)*@flags: BLKDEV_DISCARD_* flags to control behaviour* Description: |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |