函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:d_hash_and_lookup - hash the qstr then search for a dentry*@dir: Directory to search in*@name: qstr of name we wish to find* On lookup failure NULL is returned; on bad name - ERR_PTR(-error)

函数原型:struct dentry *d_hash_and_lookup(struct dentry *dir, struct qstr *name)

返回类型:struct dentry

参数:

类型参数名称
struct dentry *dir
struct qstr *name
2409  hash等于Return the hash of a string of known length
2410  如果 protected by d_lock 按位与d_flags entries
2411  err等于d_hash(dir, name)
2412  如果此条件成立可能性小(为编译器优化)(err < 0)则返回:错误号
2415  返回:查找目录项
调用者
名称描述
d_add_cid_add_ci - lookup or allocate new dentry with case-exact name*@inode: the inode case-insensitive lookup has found*@dentry: the negative dentry that was passed to the parent's lookup func*@name: the case-exact name to be associated with the returned
path_pts