Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:setup_early_printk

Proto:static int __init setup_early_printk(char *buf)

Type:int

Parameter:

TypeParameterName
char *buf
349  If Not buf Then Return 0
352  If early_console Then Return 0
355  keep = (strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for != NULL)
357  When buf != '\0' cycle
358  If Not strncmp(buf, "serial", 6) Then
359  buf += 6
362  If Not strncmp(buf, ",ttyS", 5) Then buf += 5
365  If Not strncmp(buf, "ttyS", 4) Then
366  early_serial_init(buf + 4)
376  If Not strncmp(buf, "vga", 3) && 0x0f == 1 Then
378  max_xpos = 0x07
379  max_ypos = 0x0e
396  buf++
398  Return 0