函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Fast lookup failed, do it the slow way

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

返回类型:struct dentry

参数:

类型参数名称
const struct qstr *name
struct dentry *dir
unsigned intflags
1643  inode等于 Where the name belongs to - NULL is * negative
1644  DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wq)
1647  如果此条件成立可能性小(为编译器优化)(IS_DEADDIR(inode))则返回:错误号
1649  again :
1650  dentry等于d_alloc_parallel(dir, name, & wq)
1651  如果是错误则返回:dentry
1653  如果此条件成立可能性小(为编译器优化)(!d_in_lookup(dentry))则
1654  error等于d_revalidate(dentry, flags)
1656  如果非error
1658  dput(dentry)
1659  转到:again
1661  dput(dentry)
1662  dentry等于错误号
1664  否则
1665  old等于lookup(inode, dentry, flags)
1666  d_lookup_done(dentry)
1668  dput(dentry)
1669  dentry等于old
1672  返回:dentry
调用者
名称描述
lookup_slow
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