函数逻辑报告

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

函数名称:查找目录项

函数原型:struct dentry *d_lookup(const struct dentry *parent, const struct qstr *name)

返回类型:struct dentry

参数:

类型参数名称
const struct dentry *parent
const struct qstr *name
2314  循环
2315  seq等于Read side functions for starting and finalizing a read side section.
2316  dentry等于__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
2317  如果dentry退出
2319 read_seqretry( & rename_lock, seq)循环
2320  返回:dentry
调用者
名称描述
lookup_openLook up and maybe create and open the last component
d_hash_and_lookupd_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)