Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\main.c Create Date:2022-07-28 09:57:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pm_init

Proto:static int __init pm_init(void)

Type:int

Parameter:Nothing

903  error = pm_start_workqueue()
904  If error Then Return 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  If Not power_kobj Then Return -ENOMEM
912  error = sysfs_create_groups(power_kobj, attr_groups)
913  If error Then Return error
915  pm_print_times_init()
916  Return pm_autosleep_init()