Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_proc_dointvec_ms_jiffies_conv

Proto:static int do_proc_dointvec_ms_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
3039  If write Then
3040  jif = msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
3042  If jif > INT_MAX Then Return 1
3044  valp = jif
3045  Else
3046  val = valp
3048  If val < 0 Then
3049  * negp = true
3050  lval = -val
3051  Else
3052  * negp = false
3053  lval = val
3055  lvalp = Convert various time units to each other:
3057  Return 0