Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:create_new_subsystem

Proto:static struct event_subsystem *create_new_subsystem(const char *name)

Type:struct event_subsystem

Parameter:

TypeParameterName
const char *name
1873  system = Allocation memory
1874  If Not system Then Return NULL
1877  ref_count = 1
1880  name = kstrdup_const(name, GFP_KERNEL)
1881  If Not name Then Go to out_free
1884  filter = NULL
1886  filter = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1887  If Not filter Then Go to out_free
1890  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1892  Return system
1894  out_free :
1895  kfree_const(name)
1896  kfree(system)
1897  Return NULL
Caller
NameDescribe
event_subsystem_dir