函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-flush.c Create Date:2022-07-27 18:38:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask, sector_t *error_sector)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
gfp_tgfp_mask
sector_t *error_sector
451  ret等于0
453  如果(bd_disk == NULL)则返回:负ENXIO
456  q等于bdev_get_queue(bdev)
457  如果非q则返回:负ENXIO
466  如果非make_request_fn则返回:负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  如果error_sectorerror_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  返回:ret
调用者
名称描述
blkdev_fsync