Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lazy_walk - try to switch to ref-walk mode

Proto:static int unlazy_walk(struct nameidata *nd)

Type:int

Parameter:

TypeParameterName
struct nameidata *nd
674  parent = dentry
676  BUG_ON(!(flags & RCU pathwalk mode; semi-internal ))
678  flags &= ~RCU pathwalk mode; semi-internal
679  If Value for the false possibility is greater at compile time(!legitimize_links(nd)) Then Go to out1
681  If Value for the false possibility is greater at compile time(!path_put is needed afterwards regardless of success or failure ) Then Go to out
683  If Value for the false possibility is greater at compile time(!legitimize_root(nd)) Then Go to out
685  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
686  BUG_ON( path.dentry.d_inode != Where the name belongs to - NULL is * negative )
687  Return 0
689  out1 :
690  mnt = NULL
691  dentry = NULL
692  out :
693  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
694  Return -ECHILD
Caller
NameDescribe
complete_walkmplete_walk - successful completion of path walk*@nd: pointer nameidata* If we had been in RCU mode, drop out of it and legitimize nd->path.* Revalidate the final result, unless we'd already done that during
get_link
lookup_fast
may_lookup
pick_link
link_path_walkName resolution.* This is the basic name resolution function, turning a pathname into* the final dentry. We expect 'base' to be positive and a directory.* Returns 0 and nd will have valid dentry and mnt on success.
path_mountpointpath_mountpoint - look up a path to be umounted*@nd: lookup context*@flags: lookup flags*@path: pointer to container for result* Look up the given name, but don't attempt to revalidate the last component.