函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\wakelock.c Create Date:2022-07-27 11:04:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pm_wake_unlock

函数原型:int pm_wake_unlock(const char *buf)

返回类型:int

参数:

类型参数名称
const char *buf
258  ret等于0
260  如果非操作权限检查则返回:负EPERM
263  len等于strlen - Find the length of a string*@s: The string to be sized
264  如果非len则返回:负EINVAL
267  如果buf[len - 1]恒等于'\n'则len自减
270  如果非len则返回:负EINVAL
273  mutex_lock( & wakelocks_lock)
275  wl等于wakelock_lookup_add(buf, len, false)
276  如果是错误
277  ret等于错误
278  转到:out
280  __pm_relax(ws)
282  wakelocks_lru_most_recent(wl)
283  wakelocks_gc()
285  out :
286  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
287  返回:ret