函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:进程创建机制初始化

函数原型:void __init fork_init(void)

返回类型:void

参数:

810  align等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, L1_CACHE_BYTES, ARCH_MIN_TASKALIGN)
814  task_struct_whitelist( & useroffset, & usersize)
815  task_struct_cachep等于kmem_cache_create_usercopy("task_struct", arch_task_struct_size, align, Panic if kmem_cache_create() fails | SLAB_ACCOUNT, useroffset, usersize, NULL)
822  arch_task_cache_init()
824  set_max_threads
826  rlim_cur等于活跃进程限制数除2
827  rlim_max等于活跃进程限制数除2
828  rlim[RLIMIT_SIGPENDING]等于rlim[RLIMIT_NPROC]
831 i小于UCOUNT_COUNTS循环
832  ucount_max[i]等于活跃进程限制数除2
840  lockdep_init_task( & init_task)
841  uprobes_init()
调用者
名称描述
start_kernel启动内核