Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:create_or_delete_synth_event

Proto:static int create_or_delete_synth_event(int argc, char **argv)

Type:int

Parameter:

TypeParameterName
intargc
char **argv
1362  name = argv[0]
1363  struct synth_event * event = NULL
1367  If name[0] == '!' Then
1368  mutex_lock( & event_mutex)
1369  event = find_synth_event(name + 1)
1370  If event Then
1371  If ref Then ret = -EBUSY
1373  Else
1375  If Not ret Then
1380  Else ret = -ENOENT
1382  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.
1383  Return ret
1386  ret = __create_synth_event(argc - 1, name, (constchar * * )argv + 1)
1387  Return If ret == -ECANCELED Then -EINVAL Else ret