Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_proc_dointvec_conv

Proto:static int do_proc_dointvec_conv(bool *negp, unsigned long *lvalp, int *valp, int write, void *data)

Type:int

Parameter:

TypeParameterName
bool *negp
unsigned long *lvalp
int *valp
intwrite
void *data
2293  If write Then
2294  If negp Then
2295  If lvalp > INT_MAX + 1 Then Return -EINVAL
2297  valp = -lvalp
2298  Else
2299  If lvalp > INT_MAX Then Return -EINVAL
2301  valp = lvalp
2303  Else
2304  val = valp
2305  If val < 0 Then
2306  * negp = true
2307  lvalp = -val
2308  Else
2309  * negp = false
2310  lvalp = val
2313  Return 0
Caller
NameDescribe
do_proc_dointvec_minmax_conv