Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kernel_shutdown_prepare

Proto:static void kernel_shutdown_prepare(enum system_states state)

Type:void

Parameter:

TypeParameterName
enum system_statesstate
260  blocking_notifier_call_chain( & Notifier list for kernel code which wants to be called* at shutdown. This is used to stop any idling DMA operations* and the like., (state == SYSTEM_HALT) ? Notify of system halt : Notify of system power off , NULL)
262  Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. = state
263  usermodehelper_disable()
264  drivers/base/power/shutdown.c
Caller
NameDescribe
kernel_haltkernel_halt - halt the system* Shutdown everything and perform a clean system halt.
kernel_power_offkernel_power_off - power_off the system* Shutdown everything and perform a clean system power_off.