函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:p_start

函数原型:static void *p_start(struct seq_file *m, loff_t *pos)__acquires(RCU)

返回类型:void

参数:

类型参数名称
struct seq_file *m
loff_t *pos
1026  tr等于private
1034  mutex_lock( & event_mutex)
1035  _read_lock_sched() - mark the beginning of a RCU-sched critical section* This is equivalent of rcu_read_lock(), but disables preemption.* Read-side critical sections can also be introduced by anything else
1037  pid_list等于cu_dereference_sched() - fetch RCU-sched-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* Makes rcu_dereference_check() do the dirty work.(filtered_pids)
1039  如果非pid_list则返回:NULL
1042  返回:race_pid_start - Used for seq_file to start reading pid lists*@pid_list: The pid list to show*@pos: The position of the file* This is used by seq_file "start" operation to start the iteration* of listing pids