Function report |
Source Code:block\blk-lib.c |
Create Date:2022-07-28 17:07:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__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
Proto: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)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If bdev_read_only(bdev) Then Return -EPERM |
146 | bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1 |
150 | If Not bdev_write_same(bdev) Then Return -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 |
163 | bv_len = bdev_logical_block_size(bdev) |
166 | If nr_sects > max_write_same_sectors Then |
167 | residual I/O count = max_write_same_sectors << 9 |
168 | nr_sects -= max_write_same_sectors |
169 | sector += max_write_same_sectors |
170 | Else |
171 | residual I/O count = nr_sects << 9 |
172 | nr_sects = 0 |
174 | cond_resched() |
178 | Return 0 |
Name | Describe |
---|---|
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: |
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 |