Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_child_reaper

Proto:static struct task_struct *find_child_reaper(struct task_struct *father, struct list_head *dead)__releases(&tasklist_lock) __acquires(&tasklist_lock)

Type:struct task_struct

Parameter:

TypeParameterName
struct task_struct *father
struct list_head *dead
506  pid_ns = task_active_pid_ns(father)
507  reaper = child_reaper
510  If Value is more likely to compile time(reaper != father) Then Return reaper
513  reaper = find_alive_thread(father)
514  If reaper Then
515  child_reaper = reaper
516  Return reaper
519  write_unlock_irq( & tasklist_lock)
522  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
523  release_task(p)
526  zap_pid_ns_processes(pid_ns)
527  write_lock_irq( & tasklist_lock)
529  Return father
Caller
NameDescribe
forget_original_parentThis does two things:* A. Make init inherit all the child processes* B. Check to see if any process groups have become orphaned* as a result of our exiting, and if they have any stopped* jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2)