Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__change_pid

Proto:static void __change_pid(struct task_struct *task, enum pid_type type, struct pid *new)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
enum pid_typetype
struct pid *new
334  pid_ptr = task_pid_ptr(task, type)
338  pid = pid_ptr
340  hlist_del_rcu - deletes entry from hash list without re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on entry does not return true after this,* the entry is in an undefined state. It is useful for RCU based
341  pid_ptr = new
343  When --tmp >= 0 cycle If pid_has_task(pid, tmp) Then
345  Return
347  free_pid(pid)
Caller
NameDescribe
detach_pid
change_pid