函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bio_check_ro

函数原型:static inline bool bio_check_ro(struct bio *bio, struct hd_struct *part)

返回类型:bool

参数:

类型参数名称
struct bio *bio
struct hd_struct *part
792  op等于bio_op(bio)
794  如果policyop_is_write(op)则
797  如果Check if the bio or request is one that needs special treatment in the* flush state machine.且非bio_sectors(bio)则返回:false
800  WARN_ONCE(1, "generic_make_request: Trying to write to read-only block-device %s (partno %d)\n", bio_devname(bio, b), partno)
805  返回:false
808  返回:false
调用者
名称描述
blk_partition_remapRemap block n of partition p to block n+start(p) of the disk.
generic_make_request_checks