Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__control_devkmsg

Proto:static int __control_devkmsg(char *str)

Type:int

Parameter:

TypeParameterName
char *str
123  If Not str Then Return -EINVAL
126  len = str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to
127  If len Then
128  devkmsg_log = DEVKMSG_LOG_MASK_ON
129  Return len
132  len = str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to
133  If len Then
134  devkmsg_log = DEVKMSG_LOG_MASK_OFF
135  Return len
138  len = str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to
139  If len Then
140  devkmsg_log = Keep both the 'on' and 'off' bits clear, i.e. ratelimit by default:
141  Return len
144  Return -EINVAL
Caller
NameDescribe
control_devkmsg
devkmsg_sysctl_set_loglvl