函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:53:42
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:find_lively_task_by_vpid

函数原型:static struct task_struct *find_lively_task_by_vpid(pid_t vpid)

返回类型:struct task_struct

参数:

类型参数名称
pid_tvpid
4247  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
4248  如果非vpidtask等于当前进程
4250  否则task等于find_task_by_vpid(vpid)
4252  如果taskget_task_struct(task)
4254  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
4256  如果非task则返回:错误号
4259  返回:task