Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-flush.c Create Date:2022-07-28 17:03:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lkdev_issue_flush - queue a flush*@bdev: blockdev to issue flush for*@gfp_mask: memory allocation flags (for bio_alloc)*@error_sector: error sector* Description:* Issue a flush for the block device in question

Proto:int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask, sector_t *error_sector)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
gfp_tgfp_mask
sector_t *error_sector
451  ret = 0
453  If (bd_disk == NULL) Then Return -ENXIO
456  q = bdev_get_queue(bdev)
457  If Not q Then Return -ENXIO
466  If Not make_request_fn Then Return -ENXIO
469  bio = bio_alloc(gfp_mask, 0)
470  bio_set_dev(bio, bdev)
471  bottom bits req flags, * top bits REQ_OP. Use * accessors. = REQ_OP_WRITE | REQ_PREFLUSH
473  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()
480  If error_sector Then error_sector = device address in 512 byte sectors
483  _put - release a reference to a bio*@bio: bio to release reference to* Description:* Put a reference to a &struct bio, either one you have gotten with* bio_alloc, bio_get or bio_clone_*. The last put of a bio will free it.
484  Return ret
Caller
NameDescribe
blkdev_fsync