Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:must be paired with terminate_walk()

Proto:static const char *path_init(struct nameidata *nd, unsigned flags)

Type:char

Parameter:

TypeParameterName
struct nameidata *nd
unsignedflags
2161  s = pointer to actual string
2163  If Not s Then flags &= ~RCU pathwalk mode; semi-internal
2165  If flags & RCU pathwalk mode; semi-internal Then _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
2168  last_type = LAST_ROOT
2169  flags = flags | LOOKUP_JUMPED | rnal use only
2170  depth = 0
2171  If flags & LOOKUP_ROOT Then
2172  root = dentry
2173  inode = Where the name belongs to - NULL is * negative
2174  If s && Value for the false possibility is greater at compile time(!d_can_lookup(root)) Then Return ERR_PTR( - ENOTDIR)
2176  path = root
2177  path.dentry.d_inode = inode
2180  root_seq = seq
2182  Else
2185  Return s
2188  mnt = NULL
2189  mnt = NULL
2190  dentry = NULL
2192  m_seq = Read side functions for starting and finalizing a read side section.
2193  If s == '/' Then
2194  set_root(nd)
2195  If Value is more likely to compile time(!nd_jump_root(nd)) Then Return s
2197  Return ERR_PTR( - ECHILD)
2198  Else if dfd == Special value used to indicateopenat should use the currentworking directory. Then
2200  fs = fs
2203  Do
2209  Else
2210  get_fs_pwd(fs, & path)
2213  Return s
2214  Else
2216  f = fdget_raw(dfd)
2219  If Not file Then Return ERR_PTR( - EBADF)
2222  dentry = dentry
2225  fdput(f)
2226  Return ERR_PTR( - ENOTDIR)
2229  path = f_path
2233  Else
2237  fdput(f)
2238  Return s
Caller
NameDescribe
path_lookupatReturns 0 and nd will be valid on success; Retuns error, otherwise.
path_parentatReturns 0 and nd will be valid on success; Retuns error, otherwise.
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.
path_openat