函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Must be called under rcu_read_lock().

函数原型:struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns)

返回类型:struct task_struct

参数:

类型参数名称
pid_tnr
struct pid_namespace *ns
390  RCU_LOCKDEP_WARN(!rcu_read_lock_held(), "find_task_by_pid_ns() needs rcu_read_lock() protection")
392  返回:pid_task(find_pid_ns(nr, ns), 单一进程)
调用者
名称描述
find_task_by_vpid
getthread
kdb_pidkdb_pid - This function implements the 'pid' command which switches* the currently active process.* pid [ | R]
kdb_killkdb_kill - This function implements the 'kill' commands.
kdb_bt
rest_init剩余初始化
tomoyo_read_pidmoyo_read_pid - Get domainname of the specified PID
tomoyo_select_domainmoyo_select_domain - Parse select command.*@head: Pointer to "struct tomoyo_io_buffer".*@data: String to parse.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().