函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:57:35
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:wait_for_vfork_done

函数原型:static int wait_for_vfork_done(struct task_struct *child, struct completion *vfork)

返回类型:int

参数:

类型参数名称
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  如果killed
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  完成量 = NULL
1269  task_unlock(child)
1272  put_task_struct(child)
1273  返回:killed
调用者
名称描述
_do_fork分裂进程