Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apm_setup

Proto:static int __init apm_setup(char *str)

Type:int

Parameter:

TypeParameterName
char *str
1859  When ((str != NULL) && ( * str != '\0')) cycle
1860  If strncmp(str, "off", 3) == 0 Then apm_disabled = 1
1862  If strncmp(str, "on", 2) == 0 Then apm_disabled = 0
1864  If strncmp(str, "bounce-interval=", 16) == 0 || strncmp(str, "bounce_interval=", 16) == 0 Then bounce_interval = simple_strtol - convert a string to a signed 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* This function is obsolete. Please use kstrtol instead.
1867  If strncmp(str, "idle-threshold=", 15) == 0 || strncmp(str, "idle_threshold=", 15) == 0 Then idle_threshold = simple_strtol(str + 15, NULL, 0)
1870  If strncmp(str, "idle-period=", 12) == 0 || strncmp(str, "idle_period=", 12) == 0 Then idle_period = simple_strtol(str + 12, NULL, 0)
1873  invert = strncmp(str, "no-", 3) == 0 || strncmp(str, "no_", 3) == 0
1875  If invert Then str += 3
1877  If strncmp(str, "debug", 5) == 0 Then debug = Not invert
1879  If strncmp(str, "power-off", 9) == 0 || strncmp(str, "power_off", 9) == 0 Then power_off = Not invert
1882  If strncmp(str, "smp", 3) == 0 Then
1883  smp = Not invert
1884  idle_threshold = 100
1886  If strncmp(str, "allow-ints", 10) == 0 || strncmp(str, "allow_ints", 10) == 0 Then allow_ints = Not invert
1889  If strncmp(str, "broken-psr", 10) == 0 || strncmp(str, "broken_psr", 10) == 0 Then get_power_status_broken = Not invert
1892  If strncmp(str, "realmode-power-off", 18) == 0 || strncmp(str, "realmode_power_off", 18) == 0 Then realmode_power_off = Not invert
1895  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
1896  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
1899  Return 1