Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:devkmsg_sysctl_set_loglvl

Proto:int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

Type:int

Parameter:

TypeParameterName
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
182  If write Then
183  If devkmsg_log & DEVKMSG_LOG_MASK_LOCK Then Return -EINVAL
186  old = devkmsg_log
187  strncpy(old_str, devkmsg_log_str, strlen("ratelimit") + 1 )
190  err = read a string sysctl
191  If err Then Return err
194  If write Then
195  err = __control_devkmsg(devkmsg_log_str)
201  If err < 0 || err + 1 != lenp Then
204  devkmsg_log = old
207  Return -EINVAL
211  Return 0