Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_symlinkat

Proto:long do_symlinkat(const char __user *oldname, int newdfd, const char __user *newname)

Type:long

Parameter:

TypeParameterName
const char __user *oldname
intnewdfd
const char __user *newname
4084  lookup_flags = 0
4086  from = getname(oldname)
4087  If IS_ERR(from) Then Return PTR_ERR(from)
4089  retry :
4090  dentry = user_path_create(newdfd, newname, & path, lookup_flags)
4091  error = PTR_ERR(dentry)
4092  If IS_ERR(dentry) Then Go to out_putname
4095  error = security_path_symlink( & path, dentry, pointer to actual string )
4096  If Not error Then error = vfs_symlink( Where the name belongs to - NULL is * negative , dentry, pointer to actual string )
4098  done_path_create( & path, dentry)
4099  If ry_estale - determine whether the caller should retry an operation*@error: the error that would currently be returned*@flags: flags being used for next lookup attempt* Check to see if the error code was -ESTALE, and then determine whether Then
4100  lookup_flags |= ll ->d_revalidate() to trust no cache
4101  Go to retry
4103  out_putname :
4104  putname(from)
4105  Return error
Caller
NameDescribe
SYSCALL_DEFINE3
SYSCALL_DEFINE2
ksys_symlink