Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline int step_into(struct nameidata *nd, struct path *path, int flags, struct inode *inode, unsigned seq)

Type:int

Parameter:

TypeParameterName
struct nameidata *nd
struct path *path
intflags
struct inode *inode
unsignedseq
1763  If Not (flags & WALK_MORE) && depth Then put_link(nd)
1765  If Value is more likely to compile time(!d_is_symlink(dentry)) || Not ( flags & WALK_FOLLOW || flags & llow links at the end ) Then
1768  path_to_nameidata(path, nd)
1769  path.dentry.d_inode = inode
1770  seq = seq
1771  Return 0
1774  If flags & RCU pathwalk mode; semi-internal Then
1775  If 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 Then Return -ECHILD
1778  Return pick_link(nd, path, inode, seq)
Caller
NameDescribe
walk_component
do_lastHandle the last step of open()