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:26:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Currently we only unregister event commands from __init, so mark* this __init too.

Proto:__init int unregister_event_command(struct event_command *cmd)

Type:int

Parameter:

TypeParameterName
struct event_command *cmd
349  ret = -ENODEV
351  mutex_lock( & trigger_cmd_mutex)
353  If strcmp(name, name) == 0 Then
354  ret = 0
355  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
356  Go to out_unlock
359  out_unlock :
360  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.
362  Return ret
Caller
NameDescribe
unregister_trigger_traceon_traceoff_cmds
unregister_trigger_enable_disable_cmds
unregister_trigger_hist_enable_disable_cmds