Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ftrace_pid_open

Proto:static int ftrace_pid_open(struct inode *inode, struct file *file)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *file
7075  tr = s or device private pointer
7077  ret = 0
7079  ret = tracing_check_open_get_tr(tr)
7080  If ret Then Return ret
7083  If f_mode & le is open for writing && f_flags & O_TRUNC Then ftrace_pid_reset(tr)
7087  ret = seq_open(file, & ftrace_pid_sops)
7088  If ret < 0 Then
7089  race_array_put - Decrement the reference counter for this trace array.* NOTE: Use this when we no longer need the trace array returned by* trace_array_get_by_name(). This ensures the trace array can be later* destroyed.
7090  Else
7091  m = needed for tty driver, and maybe others
7093  private = tr
7096  Return ret