Function report | 
Source Code:fs\namei.c | 
Create Date:2022-07-28 20:05:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:do_file_open_root
Proto:struct file *do_file_open_root(struct dentry *dentry, struct vfsmount *mnt, const char *name, const struct open_flags *op)
Type:struct file
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct dentry * | dentry | |
| struct vfsmount * | mnt | |
| const char * | name | |
| const struct open_flags * | op | 
| 3521 | flags = lookup_flags | LOOKUP_ROOT | 
| 3526 | If d_is_symlink(dentry) && intent & ... in open Then Return ERR_PTR( - ELOOP) | 
| 3529 | filename = getname_kernel(name) | 
| 3533 | set_nameidata( & nd, - 1, filename) | 
| 3534 | file = path_openat( & nd, op, flags | RCU pathwalk mode; semi-internal ) | 
| 3535 | If Value for the false possibility is greater at compile time(file == ERR_PTR( - ECHILD)) Then file = path_openat( & nd, op, flags) | 
| 3537 | If Value for the false possibility is greater at compile time(file == ERR_PTR( - ESTALE)) Then file = path_openat( & nd, op, flags | ll ->d_revalidate() to trust no cache ) | 
| 3539 | restore_nameidata() | 
| 3541 | Return file | 
| 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  |