函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_fchownat

函数原型:int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag)

返回类型:int

参数:

类型参数名称
intdfd
const char __user *filename
uid_tuser
gid_tgroup
intflag
666  error等于负EINVAL
669  如果flag按位与Do not follow symbolic links. 按位或Allow empty relative pathname 的值的反的值不等于0则转到:out
672  lookup_flags等于如果flag按位与Do not follow symbolic links. 则0否则llow links at the end
673  如果flag按位与Allow empty relative pathname lookup_flags或等于accept empty path [user_... only]
675  retry :
676  error等于user_path_at(dfd, filename, lookup_flags, & path)
677  如果error则转到:out
679  error等于mnt_want_write(mnt)
680  如果error则转到:out_release
682  error等于chown_common( & path, user, group)
683  mnt_drop_write(mnt)
684  out_release :
685  path_put( & path)
686  如果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
687  lookup_flags或等于ll ->d_revalidate() to trust no cache
688  转到:retry
690  out :
691  返回:error
调用者
名称描述
SYSCALL_DEFINE5
SYSCALL_DEFINE3
SYSCALL_DEFINE3