Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SYSCALL_DEFINE2

Proto:SYSCALL_DEFINE2(getrusage, int, who, struct rusage __user *, ru)

Type:

Parameter:Nothing

1786  If 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 lose && who != RUSAGE_CHILDREN && who != ly the calling thread Then Return -EINVAL
1790  getrusage(current process, who, & r)
1791  Return If copy_to_user(ru, & r, size of r ) Then -EFAULT Else 0