Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-28 05:59:41
Last Modify:2021-07-28 10:30:23 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:task_ppid_nr_ns

Proto:static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns)

Type:pid_t

Parameter:

TypeParameterName
const struct task_struct *tsk
struct pid_namespace *ns
1392  pid = 0
1394  _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
1395  If pid_alive - check that a task structure is not stale*@p: Task structure to be checked.* Test if a process is not yet dead (at most zombie state)* If pid_alive fails, then pointers within the task structure* can be stale and must not be dereferenced. Then pid = task_tgid_nr_ns( fetch RCU-protected pointer for dereferencing( Real parent process: ), ns)
1397  _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()
1399  Return pid