函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\compat.c Create Date:2022-07-27 12:07:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:put_compat_rusage

函数原型:int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru)

返回类型:int

参数:

类型参数名称
const struct rusage *r
struct compat_rusage __user *ru
150  memset( & r32, 0, 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  如果copy_to_user(ru, & r32, r32的长度)则返回:负EFAULT
171  返回:0
调用者
名称描述
COMPAT_SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE2
COMPAT_SYSCALL_DEFINE4