Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:may_open_dev

Proto:bool may_open_dev(const struct path *path)

Type:bool

Parameter:

TypeParameterName
const struct path *path
2886  Return Not (mnt_flags & MNT_NODEV) && Not (s_iflags & Ignore devices on this fs )
Caller
NameDescribe
may_open
lookup_bdevlookup_bdev - lookup a struct block_device by name*@pathname: special file representing the block device* Get a reference to the blockdevice at @pathname in the current* namespace if possible and return it. Return ERR_PTR(error)* otherwise.