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:ransfer_pid is an optimization of attach_pid(new), detach_pid(old)

Proto:void transfer_pid(struct task_struct *old, struct task_struct *new, enum pid_type type)

Type:void

Parameter:

TypeParameterName
struct task_struct *old
struct task_struct *new
enum pid_typetype
366  If type == PIDTYPE_PID Then PID/PID hash table linkage. = PID/PID hash table linkage.
368  hlist_replace_rcu - replace old entry by new one*@old : the element to be replaced*@new : the new element to insert* The @old entry will be replaced with the @new entry atomically.
Caller
NameDescribe
de_threadThis function makes sure the current process has its own signal table,* so that flush_signal_handlers can later reset the handlers without* disturbing other processes. (Other processes might share the signal* table via the CLONE_SIGHAND option to clone().)