Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:d_same_name

Proto:static inline bool d_same_name(const struct dentry *dentry, const struct dentry *parent, const struct qstr *name)

Type:bool

Parameter:

TypeParameterName
const struct dentry *dentry
const struct dentry *parent
const struct qstr *name
2175  If Value is more likely to compile time(!( protected by d_lock & DCACHE_OP_COMPARE)) Then
2176  If len != len Then Return false
2178  Return dentry_cmp(dentry, name, len) == 0
2180  Return d_compare(dentry, len, name, name) == 0
Caller
NameDescribe
__d_lookup__d_lookup - search for a dentry (racy)*@parent: parent dentry*@name: qstr of name we wish to find* Returns: dentry, or NULL* __d_lookup is like d_lookup, however it may (rarely) return a* false-negative result due to unrelated rename activity
d_alloc_parallel
d_exact_aliasd_exact_alias - find and hash an exact unhashed alias*@entry: dentry to add*@inode: The inode to go with this dentry* If an unhashed dentry with the same name/parent and desired* inode already exists, hash and return it. Otherwise, return* NULL.