函数逻辑报告

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_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

函数原型:struct dentry *d_add_ci(struct dentry *dentry, struct inode *inode, struct qstr *name)

返回类型:struct dentry

参数:

类型参数名称
struct dentry *dentry
struct inode *inode
struct qstr *name
2142  found等于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)
2143  如果found
2144  放置一个索引节点
2145  返回:found
2147  如果d_in_lookup(dentry)则
2148  found等于d_alloc_parallel( parent directory , name, in-lookup ones only )
2150  如果是错误或非d_in_lookup(found)则
2152  返回:found
2154  否则
2155  found等于分配高速缓存区
2156  如果非found
2158  返回:错误号
2161  res等于链接目录项
2162  如果res
2163  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
2164  返回:res
2166  返回:found