函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE2

函数原型:SYSCALL_DEFINE2(getrusage, int, who, struct rusage __user *, ru)

返回类型:

参数:

1786  如果who不等于Definition of struct rusage taken from BSD 4.3 Reno* We don't support all of these yet, but we might as well have them....* Otherwise, each time we add new items, programs which depend on this* structure will losewho不等于RUSAGE_CHILDRENwho不等于ly the calling thread 则返回:负EINVAL
1790  getrusage(当前进程, who, & r)
1791  返回:如果copy_to_user(ru, & r, r的长度)则负EFAULT否则0