函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sysctl_binary.c Create Date:2022-07-27 10:12:08
Last Modify:2020-03-17 13:22:06 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:SYSCALL_DEFINE1

函数原型:SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args)

返回类型:

参数:

100  oldlen等于0
103  如果copy_from_user( & tmp, args, tmp的长度)则返回:负EFAULT
106  如果oldval且非oldlenp则返回:负EFAULT
109  如果oldlenpCareful: we have to cast the result to the type of the pointer* for sign reasons(oldlen, oldlenp)则返回:负EFAULT
112  result等于do_sysctl(name, nlen, oldval, oldlen, newval, newlen)
115  如果result大于等于0则
116  oldlen等于result
117  result等于0
120  如果oldlenpput_user - Write a simple value into user space(oldlen, oldlenp)则返回:负EFAULT
123  返回:result