函数逻辑报告

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

函数名称:pid_task

函数原型:struct task_struct *pid_task(struct pid *pid, enum pid_type type)

返回类型:struct task_struct

参数:

类型参数名称
struct pid *pid
enum pid_typetype
373  struct task_struct * result = NULL
374  如果pid
376  first等于cu_dereference_check() - rcu_dereference with debug checking*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Do an rcu_dereference(), but check that the conditions under which the(urn the first or the next element in an RCU protected hlist( & 进程属性列[type]), lockdep_tasklist_lock_is_held())
378  如果firstresult等于hlist_entry(first, structtask_struct, pid_links[(type)])
381  返回:result
调用者
名称描述
kill_pid_info
kill_pid_usb_asyncioThe usb asyncio usage of siginfo is wrong
send_sigqueue
SYSCALL_DEFINE2This needs some heavy checking
ksys_setsid
find_task_by_pid_nsMust be called under rcu_read_lock().
get_pid_task
debug_rt_mutex_print_deadlock
good_sigevent
zap_pid_ns_processes
send_sigurg
pidfd_pollPoll support for process exit notification.
send_sigio