Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_braille_console_setup

Proto:int _braille_console_setup(char **str, char **brl_options)

Type:int

Parameter:

TypeParameterName
char **str
char **brl_options
16  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
17  If len Then
18  brl_options = ""
19  str += len
20  Return 0
23  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
24  If len Then
25  brl_options = str + len
26  str = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
27  If Not str Then
28  pr_err("need port name after brl=\n")
29  Return -EINVAL
31  * str++ = 0
34  Return 0