Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:system_tr_open

Proto:static int system_tr_open(struct inode *inode, struct file *filp)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *filp
1470  tr = s or device private pointer
1474  dir = 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).
1475  If Not dir Then Return -ENOMEM
1478  ret = Open and update trace_array ref count.* Must have the current trace_array passed to it.
1479  If ret < 0 Then
1480  kfree(dir)
1481  Return ret
1483  tr = tr
1484  needed for tty driver, and maybe others = dir
1486  Return 0