函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Do we need to follow links? We _really_ want to be able* to do this check without having to look at inode->i_op,* so we keep a cache of "no, this doesn't need follow_link"* for the common case.

函数原型:static inline int step_into(struct nameidata *nd, struct path *path, int flags, struct inode *inode, unsigned seq)

返回类型:int

参数:

类型参数名称
struct nameidata *nd
struct path *path
intflags
struct inode *inode
unsignedseq
1763  如果非flags按位与WALK_MORE的值且depthput_link(nd)
1765  如果此条件成立可能性大(为编译器优化)(!d_is_symlink(dentry))或非flags按位与WALK_FOLLOWflags按位与llow links at the end 的值则
1768  path_to_nameidata(path, nd)
1769  path.dentry.d_inode 等于inode
1770  seq等于seq
1771  返回:0
1774  如果flags按位与RCU pathwalk mode; semi-internal
1775  如果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
1778  返回:pick_link(nd, path, inode, seq)
调用者
名称描述
walk_component
do_lastHandle the last step of open()