Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\early_serial_console.c Create Date:2022-07-28 07:26:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:parse_earlyprintk

Proto:static void parse_earlyprintk(void)

Type:void

Parameter:Nothing

48  baud = DEFAULT_BAUD
50  pos = 0
51  port = 0
53  If cmdline_find_option("earlyprintk", arg, size of arg ) > 0 Then
56  If Not strncmp(arg, "serial", 6) Then
57  port = yS0
58  pos += 6
61  If arg[pos] == ',' Then pos++
70  If pos == 7 && Not strncmp(arg + pos, "0x", 2) Then
72  If port == 0 || arg + pos == e Then port = yS0
74  Else pos = e - arg
76  Else if Not strncmp(arg + pos, "ttyS", 4) Then
77  static const int bases[] = {0x3f8, 0x2f8}
78  idx = 0
81  pos += 4
83  If arg[pos++] == '1' Then idx = 1
86  port = bases[idx]
89  If arg[pos] == ',' Then pos++
92  baud = simple_strtoull - convert a string to an unsigned long long*@cp: The start of the string*@endp: A pointer to the end of the parsed string will be placed here*@base: The number base to use
93  If baud == 0 || arg + pos == e Then baud = DEFAULT_BAUD
97  If port Then early_serial_init(port, baud)
Caller
NameDescribe
console_init