Function report |
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 activity | Download SCCT | Chinese |
Name:must be paired with terminate_walk()
Proto:static const char *path_init(struct nameidata *nd, unsigned flags)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
struct nameidata * | nd | |
unsigned | flags |
2161 | s = pointer to actual string |
2163 | If Not s Then flags &= ~RCU pathwalk mode; semi-internal |
2169 | flags = flags | LOOKUP_JUMPED | rnal use only |
2170 | depth = 0 |
2171 | If flags & LOOKUP_ROOT Then |
2174 | If s && Value for the false possibility is greater at compile time(!d_can_lookup(root)) Then Return ERR_PTR( - ENOTDIR) |
2177 | path.dentry.d_inode = inode |
2178 | If flags & RCU pathwalk mode; semi-internal Then |
2182 | Else |
2185 | Return s |
2188 | mnt = NULL |
2189 | mnt = NULL |
2190 | dentry = NULL |
2193 | If s == '/' Then |
2195 | If Value is more likely to compile time(!nd_jump_root(nd)) Then Return s |
2198 | Else if dfd == Special value used to indicateopenat should use the currentworking directory. Then |
2199 | If flags & RCU pathwalk mode; semi-internal Then |
2203 | Do |
2209 | Else |
2210 | get_fs_pwd(fs, & path) |
2211 | path.dentry.d_inode = d_inode |
2213 | Return s |
2214 | Else |
2224 | If s && Value for the false possibility is greater at compile time(!d_can_lookup(dentry)) Then |
2230 | If flags & RCU pathwalk mode; semi-internal Then |
2231 | path.dentry.d_inode = d_inode |
2233 | Else |
2235 | path.dentry.d_inode = d_inode |
2238 | Return s |
Name | Describe |
---|---|
path_lookupat | Returns 0 and nd will be valid on success; Retuns error, otherwise. |
path_parentat | Returns 0 and nd will be valid on success; Retuns error, otherwise. |
path_mountpoint | path_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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |