Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:put_compat_rusage

Proto:int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru)

Type:int

Parameter:

TypeParameterName
const struct rusage *r
struct compat_rusage __user *ru
150  memset( & r32, 0, size of r32 )
151  tv_sec = tv_sec
152  tv_usec = tv_usec
153  tv_sec = tv_sec
154  tv_usec = tv_usec
155  ru_maxrss = maximum resident set size
156  ru_ixrss = integral shared memory size
157  ru_idrss = integral unshared data size
158  ru_isrss = integral unshared stack size
159  ru_minflt = page reclaims
160  ru_majflt = page faults
161  ru_nswap = swaps
162  ru_inblock = block input operations
163  ru_oublock = block output operations
164  ru_msgsnd = messages sent
165  ru_msgrcv = messages received
166  ru_nsignals = signals received
167  ru_nvcsw = voluntary context switches
168  ru_nivcsw = involuntary "
169  If copy_to_user(ru, & r32, size of r32 ) Then Return -EFAULT
171  Return 0
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE2