Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\genhd.h Create Date:2022-07-28 05:44:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_disk_ro

Proto:static inline int get_disk_ro(struct gendisk *disk)

Type:int

Parameter:

TypeParameterName
struct gendisk *disk
458  Return policy
Caller
NameDescribe
disk_ro_show
add_partitionMust be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.