函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:devm_register_reboot_notifier

函数原型:int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb)

返回类型:int

参数:

类型参数名称
struct device *dev
struct notifier_block *nb
120  rcnb等于devres_alloc(devm_unregister_reboot_notifier, rcnb的长度, GFP_KERNEL)
122  如果非rcnb则返回:负ENOMEM
125  ret等于gister_reboot_notifier - Register function to be called at reboot time*@nb: Info about notifier function to be called* Registers a function with the list of functions* to be called at reboot time
126  如果非ret
127  rcnb等于nb
128  devres_add(dev, rcnb)
129  否则
130  devres_free(rcnb)
133  返回:ret