函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tracing_buffers_open

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

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
7296  tr等于s or device private pointer
7300  ret等于tracing_check_open_get_tr(tr)
7301  如果ret则返回:ret
7304  info等于分配内存并置零
7305  如果非info
7306  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.
7307  返回:负ENOMEM
7310  mutex_lock( & race_types_lock is used to protect the trace_types list.)
7312  tr等于tr
7313  cpu_file等于Should be used after trace_array_get(), trace_types_lock* ensures that i_cdev was already initialized.
7314  trace等于current_trace
7315  trace_buffer等于trace_buffer
7316  spare = NULL
7318  read = (unsigned int) - 1
7320  needed for tty driver, and maybe others 等于info
7322  ref自加
7324  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
7326  ret等于nonseekable_open(inode, filp)
7327  如果ret小于0则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.
7330  返回:ret