Function report |
Source Code:kernel\fork.c |
Create Date:2022-07-28 08:58:43 |
| Last Modify:2020-03-17 11:04:53 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:fork routine
Proto:long _do_fork(struct kernel_clone_args *args)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kernel_clone_args * | args | >exit_signal is expected to be checked for sanity by the caller. |
| 2396 | clone_flags = flags |
| 2400 | trace = 0 |
| 2409 | If Not (clone_flags & set if the tracing process can't force CLONE_PTRACE on this clone ) Then |
| 2410 | If clone_flags & set if the parent wants the child to wake it up on mm_release Then trace = PTRACE_EVENT_VFORK |
| 2412 | Else if exit_signal != SIGCHLD Then trace = PTRACE_EVENT_CLONE |
| 2421 | p = Create a new process |
| 2422 | add_latent_entropy() |
| 2433 | pid = get_task_pid(p, PIDTYPE_PID) |
| 2436 | If clone_flags & set the TID in the parent Then Write a simple value into user space(nr, parent_tid) |
| 2457 | Return nr |
| Name | Describe |
|---|---|
| do_fork | For compatibility with architectures that call do_fork directly rather than* using the syscall entry points below. |
| kernel_thread | Create a kernel thread. |
| sys_fork | |
| sys_vfork | |
| SYSCALL_DEFINE5 | |
| SYSCALL_DEFINE2 | lone3 - create a new process with specific properties*@uargs: argument structure*@size: size of @uargs* clone3() is the extensible successor to clone()/clone2().* It takes a struct as argument that is versioned by its size. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |