函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-29 10:37:33
Last Modify:2020-03-18 10:27:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:d_same_name

函数原型:static inline bool d_same_name(const struct dentry *dentry, const struct dentry *parent, const struct qstr *name)

返回类型:bool

参数:

类型参数名称
const struct dentry *dentry
const struct dentry *parent
const struct qstr *name
2175  如果此条件成立可能性大(为编译器优化)(!( protected by d_lock & DCACHE_OP_COMPARE))则
2176  如果len不等于len则返回:false
2178  返回:dentry_cmp(dentry, name, len)恒等于0
2180  返回:d_compare(dentry, len, name, name)恒等于0
调用者
名称描述
__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.