函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pm_autosleep_init

函数原型:int __init pm_autosleep_init(void)

返回类型:int

参数:

119  autosleep_ws等于wakeup_source_register(NULL, "autosleep")
120  如果非autosleep_ws则返回:负ENOMEM
123  autosleep_wq等于alloc_ordered_workqueue - allocate an ordered workqueue*@fmt: printf format for the name of the workqueue*@flags: WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful)*@args...: args for @fmt* Allocate an ordered workqueue("autosleep", 0)
124  如果autosleep_wq则返回:0
127  wakeup_source_unregister(autosleep_ws)
128  返回:负ENOMEM