Function report |
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 activity | Download SCCT | Chinese |
Name:apm_setup
Proto:static int __init apm_setup(char *str)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
char * | str |
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) |
1879 | If strncmp(str, "power-off", 9) == 0 || strncmp(str, "power_off", 9) == 0 Then power_off = 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 |
1899 | Return 1 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |