Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\profile.c Create Date:2022-07-28 10:37:31
Last Modify:2020-03-17 15:11:09 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:profile_event_register

Proto:int profile_event_register(enum profile_type type, struct notifier_block *n)

Type:int

Parameter:

TypeParameterName
enum profile_typetype
struct notifier_block *n
172  err = -EINVAL
175  Case type == PROFILE_TASK_EXIT
176  err = locking_notifier_chain_register - Add notifier to a blocking notifier chain*@nh: Pointer to head of the blocking notifier chain*@n: New entry in notifier chain* Adds a notifier to a blocking notifier chain.* Must be called in process context.
178  Break
179  Case type == PROFILE_MUNMAP
180  err = locking_notifier_chain_register - Add notifier to a blocking notifier chain*@nh: Pointer to head of the blocking notifier chain*@n: New entry in notifier chain* Adds a notifier to a blocking notifier chain.* Must be called in process context.
182  Break
185  Return err