Function report |
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 activity | Download SCCT | Chinese |
Name:Name 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.
Proto:static int link_path_walk(const char *name, struct nameidata *nd)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | name | |
struct nameidata * | nd |
2062 | name++ |
2063 | If Not name Then Return 0 |
2067 | cycle |
2071 | err = may_lookup(nd) |
2078 | If name[0] == '.' Then switch hashlen_len(hash_len) |
2079 | Case hashlen_len(hash_len) == 2 |
2085 | Case hashlen_len(hash_len) == 1 |
2088 | If Value is more likely to compile time(type == LAST_NORM) Then |
2090 | flags &= ~LOOKUP_JUMPED |
2105 | name += hashlen_len(hash_len) |
2112 | Do |
2113 | name++ |
2114 | When Value for the false possibility is greater at compile time( * name == '/') cycle |
2115 | If Value for the false possibility is greater at compile time(! * name) Then |
2116 | OK : |
2118 | If Not depth Then Return 0 |
2122 | If Not name Then Return 0 |
2125 | err = walk_component(nd, WALK_FOLLOW) |
2126 | Else |
2128 | err = walk_component(nd, WALK_FOLLOW | WALK_MORE) |
2133 | If err Then |
2149 | If flags & RCU pathwalk mode; semi-internal Then |
2150 | If lazy_walk - try to switch to ref-walk mode Then Return -ECHILD |
2153 | Return -ENOTDIR |
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 |