Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\suspend_test.c Create Date:2022-07-28 09:58:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:setup_test_suspend

Proto:static int __init setup_test_suspend(char *value)

Type:int

Parameter:

TypeParameterName
char *value
157  value++
158  suspend_type = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function
159  If Not suspend_type Then Return 0
162  repeat = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function
163  If repeat Then
164  If kstrtou32(repeat, 0, & test_repeat_count_max) Then Return 0
168  When i < PM_SUSPEND_MAX cycle If Not strcmp(pm_labels[i], suspend_type) Then
170  Kernel options like "test_suspend=mem" force suspend/resume sanity tests* at startup time. They're normally disabled, for faster boot and because* we can't know which states really work on this particular system. = pm_labels[i]
171  Return 0
174  printk(warn_bad_state, suspend_type)
175  Return 0