Function report |
Source Code:fs\namei.c |
Create Date:2022-07-28 20:05:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Check whether we can create an object with dentry child in directory* dir.* 1. We can't do it if child already exists (open has special treatment for* this case, but since we are inlined it's OK)* 2
Proto:static inline int may_create(struct inode *dir, struct dentry *child)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | dir | |
struct dentry * | child |
2786 | audit_inode_child(dir, child, a child being created ) |
2787 | If Where the name belongs to - NULL is * negative Then Return -EEXIST |
2789 | If IS_DEADDIR(dir) Then Return -ENOENT |
2792 | If Not kuid_has_mapping(s_user_ns, current_fsuid()) || Not kgid_has_mapping(s_user_ns, current_fsgid()) Then Return -EOVERFLOW |
Name | Describe |
---|---|
vfs_create | |
vfs_mkobj | |
vfs_mknod | |
vfs_mkdir | |
vfs_symlink | |
vfs_link | vfs_link - create a new link*@old_dentry: object to be linked*@dir: new parent*@new_dentry: where to create the new link*@delegated_inode: returns inode needing a delegation break* The caller must hold dir->i_mutex* If vfs_link discovers a delegation on |
vfs_rename | vfs_rename - rename a filesystem object*@old_dir: parent of source*@old_dentry: source*@new_dir: parent of destination*@new_dentry: destination*@delegated_inode: returns an inode needing a delegation break*@flags: rename flags |
vfs_whiteout |
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 |