Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-28 20:00:56
Last Modify:2020-03-18 10:16:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_fchownat

Proto:int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag)

Type:int

Parameter:

TypeParameterName
intdfd
const char __user *filename
uid_tuser
gid_tgroup
intflag
666  error = -EINVAL
669  If (flag & ~(Do not follow symbolic links. | Allow empty relative pathname )) != 0 Then Go to out
672  lookup_flags = If flag & Do not follow symbolic links. Then 0 Else llow links at the end
673  If flag & Allow empty relative pathname Then lookup_flags |= accept empty path [user_... only]
675  retry :
676  error = user_path_at(dfd, filename, lookup_flags, & path)
677  If error Then Go to out
679  error = mnt_want_write(mnt)
680  If error Then Go to out_release
682  error = chown_common( & path, user, group)
683  mnt_drop_write(mnt)
684  out_release :
685  path_put( & path)
686  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
687  lookup_flags |= ll ->d_revalidate() to trust no cache
688  Go to retry
690  out :
691  Return error
Caller
NameDescribe
SYSCALL_DEFINE5
SYSCALL_DEFINE3
SYSCALL_DEFINE3