Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:devm_register_reboot_notifier

Proto:int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb)

Type:int

Parameter:

TypeParameterName
struct device *dev
struct notifier_block *nb
120  rcnb = devres_alloc(devm_unregister_reboot_notifier, size of rcnb , GFP_KERNEL)
122  If Not rcnb Then Return -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  If Not ret Then
127  rcnb = nb
128  devres_add(dev, rcnb)
129  Else
130  devres_free(rcnb)
133  Return ret