Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:28
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:d_flags_for_inode

Proto:static unsigned d_flags_for_inode(struct inode *inode)

Type:unsigned

Parameter:

TypeParameterName
struct inode *inode
1883  add_flags = Regular file type (or fallthru to such)
1885  If Not inode Then Return Negative dentry (maybe fallthru to nowhere)
1888  If S_ISDIR(i_mode) Then
1889  add_flags = Normal directory
1893  Else i_opflags |= IOP_LOOKUP
1896  Go to type_determined
1899  If Value for the false possibility is greater at compile time(!(i_opflags & IOP_NOFOLLOW)) Then
1902  Go to type_determined
1904  i_opflags |= IOP_NOFOLLOW
1907  If Value for the false possibility is greater at compile time(!S_ISREG(i_mode)) Then add_flags = Other file type (or fallthru to such)
1910  type_determined :
1911  If Value for the false possibility is greater at compile time(IS_AUTOMOUNT(inode)) Then add_flags |= handle automount on this dir
1913  Return add_flags
Caller
NameDescribe
__d_instantiate
__d_instantiate_anon
__d_add