Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bio_check_ro

Proto:static inline bool bio_check_ro(struct bio *bio, struct hd_struct *part)

Type:bool

Parameter:

TypeParameterName
struct bio *bio
struct hd_struct *part
792  op = bio_op(bio)
794  If policy && op_is_write(op) Then
797  If Check if the bio or request is one that needs special treatment in the* flush state machine. && Not bio_sectors(bio) Then Return 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  Return false
808  Return false
Caller
NameDescribe
blk_partition_remapRemap block n of partition p to block n+start(p) of the disk.
generic_make_request_checks