Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:proc_first_pos_non_zero_ignore - check if first position is allowed*@ppos: file position*@table: the sysctl table* Returns true if the first position is non-zero and the sysctl_writes_strict* mode indicates this is not allowed for numeric input types

Proto:static bool proc_first_pos_non_zero_ignore(loff_t *ppos, struct ctl_table *table)

Type:bool

Parameter:

TypeParameterName
loff_t *ppos
struct ctl_table *table
2087  If Not ppos Then Return false
2091  Case sysctl_writes_strict == SYSCTL_WRITES_STRICT
2092  Return true
2093  Case sysctl_writes_strict == SYSCTL_WRITES_WARN
2094  warn_sysctl_write(table)
2095  Return false
2096  Default
2097  Return false
Caller
NameDescribe
proc_dostringread a string sysctl
__do_proc_dointvec
do_proc_douintvec_w
__do_proc_doulongvec_minmax