Function report |
Source Code:kernel\power\suspend_test.c |
Create Date:2022-07-28 09:58:38 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:test_suspend
Proto:static int __init test_suspend(void)
Type:int
Parameter:Nothing
| 181 | static char warn_no_rtc[] __initdata = warning conditions "PM: no wakealarm-capable RTC driver is ready\n" |
| 184 | struct rtc_device * rtc = NULL |
| 192 | When test_state < PM_SUSPEND_MAX cycle |
| 193 | state_label = pm_states[test_state] |
| 198 | If test_state == PM_SUSPEND_MAX Then |
| 200 | Return 0 |
| 204 | dev = class_find_device(rtc_class, NULL, NULL, has_wakealarm) |
| 205 | If dev Then |
| 206 | rtc = rtc_class_open(dev_name(dev)) |
| 207 | put_device(dev) |
| 209 | If Not rtc Then |
| 210 | printk(warn_no_rtc) |
| 211 | Return 0 |
| 216 | rtc_class_close(rtc) |
| 217 | Return 0 |
| 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 |