Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\pid.c Create Date:2022-07-28 09:28:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_pid_task

Proto:struct task_struct *get_pid_task(struct pid *pid, enum pid_type type)

Type:struct task_struct

Parameter:

TypeParameterName
struct pid *pid
enum pid_typetype
426  _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
427  result = pid_task(pid, type)
428  If result Then get_task_struct(result)
430  _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()
431  Return result
Caller
NameDescribe
bpf_task_fd_query