函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:35:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vfs_create

函数原型:int vfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool want_excl)

返回类型:int

参数:

类型参数名称
struct inode *dir
struct dentry *dentry
umode_tmode
boolwant_excl
2845  error等于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
2846  如果error则返回:error
2849  如果非create则返回:负EACCES
2851  mode与等于S_IALLUGO
2852  mode或等于S_IFREG
2853  error等于security_inode_create(dir, dentry, mode)
2854  如果error则返回:error
2856  error等于create(dir, dentry, mode, want_excl)
2857  如果非errorsnotify_create - 'name' was linked in
2859  返回:error
调用者
名称描述
do_mknodat