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

Name:trigger_show

Proto:static int trigger_show(struct seq_file *m, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *v
152  If v == SHOW_AVAILABLE_TRIGGERS Then
153  seq_puts(m, "# Available triggers:\n")
154  seq_putc(m, '#')
155  mutex_lock( & trigger_cmd_mutex)
156  list_for_each_entry_reverse - iterate backwards over list of given type.*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(p, & trigger_commands, list)
157  seq_printf(m, " %s", name)
158  seq_putc(m, '\n')
159  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.
160  Return 0
163  data = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(v, structevent_trigger_data, list)
164  print(m, ops, data)
166  Return 0