函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfs_mkobj

函数原型:int vfs_mkobj(struct dentry *dentry, umode_t mode, umode_tint (*f)(struct dentry *, , void *), void *arg)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
umode_tmode
int (*f
void *arg
2867  dir等于 Where the name belongs to - NULL is * negative
2868  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
2869  如果error则返回:error
2872  mode与等于S_IALLUGO
2873  mode或等于S_IFREG
2874  error等于security_inode_create(dir, dentry, mode)
2875  如果error则返回:error
2877  error等于f(dentry, mode, arg)
2878  如果非errorsnotify_create - 'name' was linked in
2880  返回:error
调用者
名称描述
bpf_obj_do_pin