Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:vfs_mkobj

Proto:int vfs_mkobj(struct dentry *dentry, umode_t mode, umode_tint (*f)(struct dentry *, , void *), void *arg)

Type:int

Parameter:

TypeParameterName
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  If error Then Return error
2872  mode &= S_IALLUGO
2873  mode |= S_IFREG
2874  error = security_inode_create(dir, dentry, mode)
2875  If error Then Return error
2877  error = f(dentry, mode, arg)
2878  If Not error Then snotify_create - 'name' was linked in
2880  Return error
Caller
NameDescribe
bpf_obj_do_pin