函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_trigger.c Create Date:2022-07-27 13:34:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:trigger_show

函数原型:static int trigger_show(struct seq_file *m, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *m
void *v
152  如果v恒等于SHOW_AVAILABLE_TRIGGERS
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  返回: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  返回:0