Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dyn_events_release_all - Release all specific events*@type: the dyn_event_operations * which filters releasing events* This releases all events which ->ops matches @type

Proto:int dyn_events_release_all(struct dyn_event_operations *type)

Type:int

Parameter:

TypeParameterName
struct dyn_event_operations *type
149  ret = 0
151  mutex_lock( & event_mutex)
152  r_each_dyn_event - iterate over the dyn_event list*@pos: the struct dyn_event * to use as a loop cursor* This is just a basement of for_each macro. Wrap this for* each actual event structure with ops filtering.(ev)
153  If type && ops != type Then Continue
155  If is_busy(ev) Then
156  ret = -EBUSY
157  Go to out
160  r_each_dyn_event - iterate over the dyn_event list safely*@pos: the struct dyn_event * to use as a loop cursor*@n: the struct dyn_event * to use as temporary storage(ev, tmp)
161  If type && ops != type Then Continue
163  ret = free(ev)
164  If ret Then Break
167  out :
168  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.
170  Return ret
Caller
NameDescribe
probes_open
dyn_event_open
probes_open
synth_events_open