函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pm_init

函数原型:static int __init pm_init(void)

返回类型:int

参数:

903  error等于pm_start_workqueue()
904  如果error则返回:error
906  hibernate_image_size_init()
907  hibernate_reserved_size_init()
908  pm_states_init()
909  power_kobj等于kobject_create_and_add() - Create a struct kobject dynamically and* register it with sysfs.*@name: the name for the kobject*@parent: the parent kobject of this kobject, if any.* This function creates a kobject structure dynamically and registers it
910  如果非power_kobj则返回:负ENOMEM
912  error等于sysfs_create_groups(power_kobj, attr_groups)
913  如果error则返回:error
915  pm_print_times_init()
916  返回:pm_autosleep_init()