函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:system_tr_open

函数原型:static int system_tr_open(struct inode *inode, struct file *filp)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
1470  tr等于s or device private pointer
1474  dir等于分配内存并置零
1475  如果非dir则返回:负ENOMEM
1478  ret等于Open and update trace_array ref count.* Must have the current trace_array passed to it.
1479  如果ret小于0则
1480  kfree(dir)
1481  返回:ret
1483  tr等于tr
1484  needed for tty driver, and maybe others 等于dir
1486  返回:0