Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:event_trigger_regex_open

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

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *file
180  ret = security_locked_down(LOCKDOWN_TRACEFS)
181  If ret Then Return ret
184  mutex_lock( & event_mutex)
186  If Value for the false possibility is greater at compile time(!event_file_data(file)) Then
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  Return -ENODEV
191  If f_mode & le is open for writing && f_flags & O_TRUNC Then
196  event_file = event_file_data(file)
199  If unreg_all Then unreg_all(event_file)
204  If f_mode & le is open for reading Then
205  ret = seq_open(file, & event_triggers_seq_ops)
206  If Not ret Then
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  Return ret
Caller
NameDescribe
event_trigger_open