函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:event_trigger_regex_open

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

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *file
180  ret等于security_locked_down(LOCKDOWN_TRACEFS)
181  如果ret则返回:ret
184  mutex_lock( & event_mutex)
186  如果此条件成立可能性小(为编译器优化)(!event_file_data(file))则
187  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.
188  返回:负ENODEV
191  如果f_mode按位与le is open for writing f_flags按位与O_TRUNC
196  event_file等于event_file_data(file)
199  如果unreg_allunreg_all(event_file)
204  如果f_mode按位与le is open for reading
205  ret等于seq_open(file, & event_triggers_seq_ops)
206  如果非ret
208  private等于file
212  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.
214  返回:ret
调用者
名称描述
event_trigger_open