Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pid_task

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

Type:struct task_struct

Parameter:

TypeParameterName
struct pid *pid
enum pid_typetype
373  struct task_struct * result = NULL
374  If pid Then
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( & lists of tasks that use this pid [type]), lockdep_tasklist_lock_is_held())
378  If first Then result = hlist_entry(first, structtask_struct, pid_links[(type)])
381  Return result
Caller
NameDescribe
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