Function report |
Source Code:fs\namei.c |
Create Date:2022-07-28 20:05:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Attempt to atomically look up, create and open a file from a negative* dentry
Proto:static int atomic_open(struct nameidata *nd, struct dentry *dentry, struct path *path, struct file *file, const struct open_flags *op, int open_flag, umode_t mode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct nameidata * | nd | |
struct dentry * | dentry | |
struct path * | path | |
struct file * | file | |
const struct open_flags * | op | |
int | open_flag | |
umode_t | mode |
3004 | struct dentry * const DENTRY_NOT_SET = (void * ) - 1UL |
3011 | If flags & quire a directory Then open_flag |= O_DIRECTORY |
3014 | dentry = DENTRY_NOT_SET |
3016 | error = atomic_open(dir, dentry, file, open_to_namei_flags(open_flag), mode) |
3018 | d_lookup_done(dentry) |
3019 | If Not error Then |
3020 | If f_mode & FMODE_OPENED Then |
3026 | If f_mode & FMODE_CREATED Then |
3034 | Else if WARN_ON(dentry == DENTRY_NOT_SET) Then |
3036 | Else |
3037 | If dentry Then |
3041 | If f_mode & FMODE_CREATED Then snotify_create - 'name' was linked in |
3045 | Else |
3053 | Return error |
Name | Describe |
---|---|
lookup_open | Look up and maybe create and open the last component |
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 |