函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pm_show_wakelocks

函数原型:ssize_t pm_show_wakelocks(char *buf, bool show_active)

返回类型:ssize_t

参数:

类型参数名称
char *buf
boolshow_active
42  str等于buf
43  end等于bufPAGE_SIZE
45  mutex_lock( & wakelocks_lock)
47 node循环
48  wl等于rb_entry(node, structwakelock, node)
49  如果active恒等于show_activestr加等于格式化输出字符串
52  如果str大于bufstr自减
55  str加等于格式化输出字符串
57  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.
58  返回:strbuf