函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cp_new_stat64

函数原型:static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf)

返回类型:long

参数:

类型参数名称
struct kstat *stat
struct stat64 __user *statbuf
447  ---------- LFS-64 ----------- (tmp)
453  st_dev等于huge_encode_dev(dev)
454  st_rdev等于huge_encode_dev(rdev)
456  st_ino等于ino
457  如果st_ino的长度小于ino的长度且st_ino不等于ino则返回:负EOVERFLOW
462  st_mode等于mode
463  st_nlink等于nlink
464  st_uid等于m_kuid_munged - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid.
465  st_gid等于m_kgid_munged - Create a gid from a kgid user-namespace pair.*@targ: The user namespace we want a gid in.*@kgid: The kernel internal gid to start with.* Map @kgid into the user-namespace specified by @targ and* return the resulting gid.
466  st_atime等于 seconds
467  st_atime_nsec等于 nanoseconds
468  st_mtime等于 seconds
469  st_mtime_nsec等于 nanoseconds
470  st_ctime等于 seconds
471  st_ctime_nsec等于 nanoseconds
472  st_size等于size
473  st_blocks等于blocks
474  st_blksize等于 Preferred I/O size
475  返回:如果copy_to_user(statbuf, & tmp, tmp的长度)则负EFAULT否则0
调用者
名称描述
SYSCALL_DEFINE2
SYSCALL_DEFINE2
SYSCALL_DEFINE2
SYSCALL_DEFINE4