Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:acpi_sleep_setup

Proto:static int __init acpi_sleep_setup(char *str)

Type:int

Parameter:

TypeParameterName
char *str
123  When ((str != NULL) && ( * str != '\0')) cycle
124  If strncmp(str, "s3_bios", 7) == 0 Then acpi_realmode_flags |= 1
126  If strncmp(str, "s3_mode", 7) == 0 Then acpi_realmode_flags |= 2
128  If strncmp(str, "s3_beep", 7) == 0 Then acpi_realmode_flags |= 4
134  If strncmp(str, "nonvs", 5) == 0 Then acpi_nvs_nosave()
136  If strncmp(str, "nonvs_s3", 8) == 0 Then acpi_nvs_nosave_s3()
138  If strncmp(str, "old_ordering", 12) == 0 Then acpi_old_suspend_ordering()
140  If strncmp(str, "nobl", 4) == 0 Then acpi_sleep_no_blacklist()
142  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
143  If (str != NULL) Then str += strspn - Calculate the length of the initial substring of @s which only contain letters in @accept*@s: The string to be searched*@accept: The string to search for
146  Return 1