函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fpid_start

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

返回类型:void

参数:

类型参数名称
struct seq_file *m
loff_t *pos
7023  tr等于private
7025  mutex_lock( & ftrace_lock)
7026  _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
7028  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.(function_pids)
7030  如果非pid_list则返回:!( * pos) ? Greater than any max PID : NULL
7033  返回: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