Function report |
Source Code:block\blk-lib.c |
Create Date:2022-07-28 17:07:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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:
Proto:int blkdev_issue_discard(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned long flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If ret == -EOPNOTSUPP Then ret = 0 |
115 | Return ret |
Name | Describe |
---|---|
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 |
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 |