Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:31:12
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:event_function

Proto:static int event_function(void *info)

Type:int

Parameter:

TypeParameterName
void *info
204  efs = info
205  event = event
206  ctx = ctx
207  cpuctx = __get_cpu_context(ctx)
208  task_ctx = task_ctx
209  ret = 0
211  lockdep_assert_irqs_disabled()
213  perf_ctx_lock(cpuctx, task_ctx)
218  If task Then
219  If task != current process Then
220  ret = -ESRCH
221  Go to unlock
231  WARN_ON_ONCE(!is_active)
236  WARN_ON_ONCE(task_ctx != ctx)
237  Else
238  WARN_ON_ONCE( & ctx != ctx)
241  func(event, cpuctx, ctx, data)
242  unlock :
243  perf_ctx_unlock(cpuctx, task_ctx)
245  Return ret