函数逻辑报告

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

函数名称:lookup_fast

函数原型:static int lookup_fast(struct nameidata *nd, struct path *path, struct inode **inode, unsigned *seqp)

返回类型:int

参数:

类型参数名称
struct nameidata *nd
struct path *path
struct inode **inode
unsigned *seqp
1558  mnt等于mnt
1559  parent等于dentry
1560  status等于1
1568  如果flags按位与RCU pathwalk mode; semi-internal
1571  dentry等于__d_lookup_rcu(parent, & last, & seq)
1575  返回:0
1582  inode等于d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
1583  negative等于d_is_negative(dentry)
1584  如果此条件成立可能性小(为编译器优化)(ad_seqcount_retry - end a seq-read critical section*@s: pointer to seqcount_t*@start: count, from read_seqcount_begin* Returns: 1 if retry is required, else 0* read_seqcount_retry closes a read critical section of the given seqcount)则返回:负ECHILD
1594  如果此条件成立可能性小(为编译器优化)(__read_seqcount_retry - end a seq-read critical section (without barrier)*@s: pointer to seqcount_t*@start: count, from read_seqcount_begin* Returns: 1 if retry is required, else 0* __read_seqcount_retry is like read_seqcount_retry, but has no smp_rmb())则返回:负ECHILD
1597  seqp等于seq
1598  status等于d_revalidate(dentry, flags)
1606  mnt等于mnt
1607  dentry等于dentry
1611  如果lazy_child - try to switch to ref-walk mode则返回:负ECHILD
1613  如果此条件成立可能性小(为编译器优化)(status == - ECHILD)则status等于d_revalidate(dentry, flags)
1616  否则
1617  dentry等于__d_lookup(parent, & last)
1618  如果此条件成立可能性小(为编译器优化)(!dentry)则返回:0
1620  status等于d_revalidate(dentry, flags)
1622  如果此条件成立可能性小(为编译器优化)(status <= 0)则
1623  如果非status废除目录项
1625  dput(dentry)
1626  返回:status
1629  mnt等于mnt
1630  dentry等于dentry
1631  err等于Handle a dentry that is managed in some way.* - Flagged for transit management (autofs)* - Flagged as mountpoint* - Flagged as automount point* This may only be called in refwalk mode.* On success path->dentry is known positive.
1632  如果此条件成立可能性大(为编译器优化)(err > 0)则inode等于d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
1634  返回:err
调用者
名称描述
walk_component
do_lastHandle the last step of open()