函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:分裂出子进程

函数原型:long do_fork(unsigned long clone_flags, unsigned long stack_start, unsigned long stack_size, int __user *parent_tidptr, int __user *child_tidptr)

返回类型:long

参数:

类型参数名称
unsigned longclone_flags
unsigned longstack_start
unsigned longstack_size
int __user *parent_tidptr
int __user *child_tidptr
2479  struct kernel_clone_args args = {flags = (clone_flags & ~signal mask to be sent at exit ), pidfd = parent_tidptr, child_tid = child_tidptr, parent_tid = parent_tidptr, exit_signal = (clone_flags & signal mask to be sent at exit ), stack = stack_start, stack_size = stack_size, }
2489  如果非legacy_clone_args_valid( & args)则返回:负EINVAL
2492  返回:分裂进程