| Function report | 
| Source Code: fs\namei.c | Create Date:2022-07-28 20:05:03 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Handle a dentry that is managed in some way.* - Flagged for transit management (autofs)* - Flagged as mountpoint* - Flagged as automount point* This may only be called in refwalk mode.* On success path->dentry is known positive.
Proto:static int follow_managed(struct path *path, struct nameidata *nd)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct path * | path | |
| struct nameidata * | nd | 
| 1222 | bool need_mntput = false | 
| 1223 | ret = 0 | 
| 1232 | If flags & manage transit from this dirent Then | 
| 1236 | flags = smp_load_acquire( & protected by d_lock ) | 
| 1237 | If ret < 0 Then Break | 
| 1242 | If flags & s a mountpoint Then | 
| 1243 | mounted = lookup_mnt(path) | 
| 1244 | If mounted Then | 
| 1261 | If flags & handle automount on this dir Then | 
| 1262 | ret = Perform an automount* - return -EISDIR to tell follow_managed() to stop and return the path we* were called with. | 
| 1263 | If ret < 0 Then Break | 
| 1265 | Continue | 
| 1269 | Break | 
| 1272 | If need_mntput && mnt == mnt Then mntput(mnt) | 
| 1274 | If need_mntput Then flags |= LOOKUP_JUMPED | 
| 1278 | If ret > 0 && Value for the false possibility is greater at compile time(d_flags_negative(flags)) Then ret = -ENOENT | 
| 1280 | If Value for the false possibility is greater at compile time(ret < 0) Then path_put_conditional(path, nd) | 
| 1282 | Return ret | 
| Name | Describe | 
|---|---|
| lookup_fast | |
| walk_component | |
| handle_lookup_down | |
| do_last | Handle the last step of open() | 
| 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 |