函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This looks up the name in dcache and possibly revalidates the found dentry.* NULL is returned if the dentry does not exist in the cache.

函数原型:static struct dentry *lookup_dcache(const struct qstr *name, struct dentry *dir, unsigned int flags)

返回类型:struct dentry

参数:

类型参数名称
const struct qstr *name
struct dentry *dir
unsigned intflags
1508  dentry等于查找目录项
1509  如果dentry
1510  error等于d_revalidate(dentry, flags)
1512  如果非error废除目录项
1514  dput(dentry)
1515  返回:错误号
1518  返回:dentry
调用者
名称描述
__lookup_hashParent directory has inode locked exclusive. This is one* and only case when ->lookup() gets called on non in-lookup* dentries - as the matter of fact, this only gets called* when directory is guaranteed to have no in-lookup children* at all.
try_lookup_one_lenry_lookup_one_len - filesystem helper to lookup single pathname component*@name: pathname component to lookup*@base: base directory to lookup from*@len: maximum length @len should be interpreted to* Look up a dentry by name in the dcache, returning NULL
lookup_one_lenlookup_one_len - filesystem helper to lookup single pathname component*@name: pathname component to lookup*@base: base directory to lookup from*@len: maximum length @len should be interpreted to* Note that this routine is purely a helper for filesystem
lookup_one_len_unlockedlookup_one_len_unlocked - filesystem helper to lookup single pathname component*@name: pathname component to lookup*@base: base directory to lookup from*@len: maximum length @len should be interpreted to* Note that this routine is purely a helper for