函数逻辑报告 | 
Source Code:kernel\fork.c | 
Create Date:2022-07-27 09:58:15 | 
| Last Modify:2020-03-17 11:04:53 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:创建内核线程
函数原型:pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
返回类型:pid_t
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| int (* | fn | |
| void * | arg | |
| unsigned long | flags | 
| 2501 | struct kernel_clone_args args = {flags = ((flags | 共享虚拟内存 | set if the tracing process can't force CLONE_PTRACE on this clone ) & ~signal mask to be sent at exit ), exit_signal = (flags & signal mask to be sent at exit ), stack = (unsigned long)fn, stack_size = (unsigned long)arg, } | 
| 2508 | 返回:分裂进程 | 
| 名称 | 描述 | 
|---|---|
| call_usermodehelper_exec_sync | Handles UMH_WAIT_PROC. | 
| call_usermodehelper_exec_work | We need to create the usermodehelper kernel thread from a task that is affine* to an optimized set of CPUs (or nohz housekeeping ones) such that they* inherit a widest affinity irrespective of call_usermodehelper() callers with | 
| create_kthread | |
| rest_init | 剩余初始化 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |