函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfs_symlink

函数原型:int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname)

返回类型:int

参数:

类型参数名称
struct inode *dir
struct dentry *dentry
const char *oldname
4058  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
4060  如果error则返回:error
4063  如果非symlink则返回:负EPERM
4066  error等于security_inode_symlink(dir, dentry, oldname)
4067  如果error则返回:error
4070  error等于symlink(dir, dentry, oldname)
4071  如果非errorsnotify_create - 'name' was linked in
4073  返回:error
调用者
名称描述
do_symlinkat