函数逻辑报告 |
Source Code:block\blk-lib.c |
Create Date:2022-07-27 18:42:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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:
函数原型:int blkdev_issue_discard(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned long flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct block_device * | bdev | |
sector_t | sector | |
sector_t | nr_sects | |
gfp_t | gfp_mask | |
unsigned long | flags |
108 | ret等于submit_bio_wait - submit a bio, and wait until it completes*@bio: The &struct bio which describes the I/O* Simple wrapper around submit_bio() |
109 | 如果ret恒等于负EOPNOTSUPP则ret等于0 |
115 | 返回:ret |
名称 | 描述 |
---|---|
discard_swap | swapon tell device that all the old swap contents can be discarded,* to allow the swap device to optimize its wear-levelling. |
discard_swap_cluster | swap allocation tell device that a cluster of swap can now be discarded,* to allow the swap device to optimize its wear-levelling. |
blk_ioctl_discard |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |