函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kernel_shutdown_prepare

函数原型:static void kernel_shutdown_prepare(enum system_states state)

返回类型:void

参数:

类型参数名称
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
调用者
名称描述
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.