Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:58:53
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:walk_process_tree

Proto:void walk_process_tree(struct task_struct *top, proc_visitor visitor, void *data)

Type:void

Parameter:

TypeParameterName
struct task_struct *top
proc_visitorvisitor
void *data
2738  read_lock( & tasklist_lock)
2739  leader = top = group_leader
2740  down :
2741  for_each_thread(leader, parent)
2743  res = visitor(child, data)
2744  If res Then
2745  If res < 0 Then Go to out
2747  leader = child
2748  Go to down
2750  up :
2755  If leader != top Then
2756  child = leader
2757  parent = Real parent process:
2758  leader = group_leader
2759  Go to up
2761  out :
2762  read_unlock( & tasklist_lock)
Caller
NameDescribe
SYSCALL_DEFINE5