Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, int flags)

Type:long

Parameter:

TypeParameterName
intdfd
const char __user *filename
struct timespec64 *times
intflags
91  error = -EINVAL
93  If times && ( Not nsec_valid( nanoseconds ) || Not nsec_valid( nanoseconds ) ) Then
95  Go to out
98  If flags & ~Do not follow symbolic links. Then Go to out
101  If filename == NULL && dfd != Special value used to indicateopenat should use the currentworking directory. Then
104  If flags & Do not follow symbolic links. Then Go to out
107  f = fdget(dfd)
108  error = -EBADF
109  If Not file Then Go to out
112  error = utimes_common( & f_path, times)
113  fdput(f)
114  Else
116  lookup_flags = 0
118  If Not (flags & Do not follow symbolic links. ) Then lookup_flags |= llow links at the end
120  retry :
121  error = user_path_at(dfd, filename, lookup_flags, & path)
122  If error Then Go to 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  Go to retry
133  out :
134  Return error
Caller
NameDescribe
SYSCALL_DEFINE4