函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-27 11:47:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Functions for validating access to tasks.

函数原型:static struct task_struct *lookup_task(const pid_t pid, bool thread, bool gettime)

返回类型:struct task_struct

参数:

类型参数名称
const pid_tpid
boolthread
boolgettime
59  如果非pid则返回:如果thread当前进程否则group_leader
62  p等于find_task_by_vpid(pid)
63  如果非p则返回:p
66  如果thread则返回:same_thread_group(p, 当前进程) ? p : NULL
69  如果gettime
79  返回:(p == 当前进程 || thread_group_leader(p)) ? p : NULL
85  返回:Do to the insanities of de_thread it is possible for a process* to have the pid of the thread group leader without actually being* the thread group leader ? p : NULL
调用者
名称描述
__get_task_for_clock