Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_proc_dointvec_userhz_jiffies_conv

Proto:static int do_proc_dointvec_userhz_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
3016  If write Then
3017  If USER_HZ < HZ && lvalp > LONG_MAX / HZ * USER_HZ Then Return 1
3019  valp = clock_t_to_jiffies( * negp ? - * lvalp : * lvalp)
3020  Else
3021  val = valp
3023  If val < 0 Then
3024  * negp = true
3025  lval = -val
3026  Else
3027  * negp = false
3028  lval = val
3030  lvalp = jiffies_to_clock_t(lval)
3032  Return 0