Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_entry

Proto:static unsigned int get_entry(void)

Type:unsigned int

Parameter:Nothing

101  len = 0
105  Do
106  key = Read from the keyboard
108  If key == '\b' Then
109  If len > 0 Then
110  puts("\b \b")
111  len--
113  Else if key >= '0' && key <= '9' || key >= 'A' && key <= 'Z' || key >= 'a' && key <= 'z' Then
116  If len < size of entry_buf Then
117  entry_buf[len++] = key
118  putchar(key)
121  When key != '\r' cycle
122  putchar('\n')
124  If len == 0 Then Return VIDEO_CURRENT_MODE
127  v = 0
128  When i < len cycle
129  v <<= 4
130  key = entry_buf[i] | 0x20
131  v += If key > '9' Then key - 'a' + 10 Else key - '0'
134  Return v
Caller
NameDescribe
mode_menu