函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_utimes - change times on filename or file descriptor*@dfd: open file descriptor, -1 or AT_FDCWD*@filename: path name or NULL*@times: new times or NULL*@flags: zero or more flags (only AT_SYMLINK_NOFOLLOW for the moment)* If filename is NULL and dfd

函数原型:long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, int flags)

返回类型:long

参数:

类型参数名称
intdfd
const char __user *filename
struct timespec64 *times
intflags
91  error等于负EINVAL
93  如果times且非nsec_valid( nanoseconds )或非nsec_valid( nanoseconds )的值则
95  转到:out
98  如果flags按位与Do not follow symbolic links. 的反则转到:out
101  如果filename恒等于NULLdfd不等于Special value used to indicateopenat should use the currentworking directory.
104  如果flags按位与Do not follow symbolic links. 则转到:out
107  f等于fdget(dfd)
108  error等于负EBADF
109  如果非file则转到:out
112  error等于utimes_common( & f_path, times)
113  fdput(f)
114  否则
116  lookup_flags等于0
118  如果非flags按位与Do not follow symbolic links. 的值则lookup_flags或等于llow links at the end
120  retry :
121  error等于user_path_at(dfd, filename, lookup_flags, & path)
122  如果error则转到:out
125  error等于utimes_common( & path, times)
126  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
129  转到:retry
133  out :
134  返回:error
调用者
名称描述
SYSCALL_DEFINE4
do_utime