Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wait_for_vfork_done

Proto:static int wait_for_vfork_done(struct task_struct *child, struct completion *vfork)

Type:int

Parameter:

TypeParameterName
struct task_struct *child
struct completion *vfork
1260  freezer_do_not_count()
1261  cgroup_enter_frozen()
1262  killed = wait_for_completion_killable(vfork)
1263  cgroup_leave_frozen(false)
1264  freezer_count()
1266  If killed Then
1267  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
1268  vfork_done = NULL
1269  task_unlock(child)
1272  put_task_struct(child)
1273  Return killed
Caller
NameDescribe
_do_forkfork routine