Function report |
Source Code:kernel\power\wakelock.c |
Create Date:2022-07-28 10:04:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pm_wake_lock
Proto:int pm_wake_lock(const char *buf)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | buf |
| 210 | timeout_ns = 0 |
| 212 | ret = 0 |
| 214 | If Not Check operation authority Then Return -EPERM |
| 217 | When str && Not Note: isspace() must return false for %NUL-terminator ( * str) cycle |
| 218 | str++ |
| 231 | mutex_lock( & wakelocks_lock) |
| 233 | wl = wakelock_lookup_add(buf, len, true) |
| 238 | If timeout_ns Then |
| 239 | timeout_ms = timeout_ns + NSEC_PER_MSEC - 1 |
| 242 | __pm_wakeup_event(ws, timeout_ms) |
| 243 | Else |
| 244 | __pm_stay_awake(ws) |
| 249 | out : |
| 251 | Return ret |
| 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 |