Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_proc_dointvec_jiffies_conv

Proto:static int do_proc_dointvec_jiffies_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
2993  If write Then
2994  If lvalp > INT_MAX / HZ Then Return 1
2996  valp = If negp Then -(lvalp * HZ) Else lvalp * HZ
2997  Else
2998  val = valp
3000  If val < 0 Then
3001  * negp = true
3002  lval = -val
3003  Else
3004  * negp = false
3005  lval = val
3007  lvalp = lval / HZ
3009  Return 0