Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sysctl_binary.c Create Date:2022-07-28 09:12:16
Last Modify:2020-03-17 13:22:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:SYSCALL_DEFINE1

Proto:SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args)

Type:

Parameter:Nothing

100  oldlen = 0
103  If copy_from_user( & tmp, args, size of tmp ) Then Return -EFAULT
106  If oldval && Not oldlenp Then Return -EFAULT
109  If oldlenp && Get a simple variable from user space(oldlen, oldlenp) Then Return -EFAULT
112  result = do_sysctl(name, nlen, oldval, oldlen, newval, newlen)
115  If result >= 0 Then
116  oldlen = result
117  result = 0
120  If oldlenp && Write a simple value into user space(oldlen, oldlenp) Then Return -EFAULT
123  Return result