Function report |
Source Code:kernel\fork.c |
Create Date:2022-07-28 08:57:54 |
Last Modify:2020-03-17 11:04:53 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Replication process and set stack
Proto:static struct task_struct *dup_task_struct(struct task_struct *orig, int node)
Type:struct task_struct
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | orig | |
int | node |
863 | stack_vm_area((__unused__)) |
866 | If node == NUMA_NO_NODE Then node = tsk_fork_get_node(orig) |
869 | If Not tsk Then Return NULL |
872 | stack = alloc_thread_stack_node(tsk, node) |
876 | If memcg_charge_kernel_stack(tsk) Then Go to free_stack |
879 | stack_vm_area = task_stack_vm_area(tsk) |
888 | pointer of stack = stack |
896 | If err Then Go to free_stack |
909 | setup_thread_stack(tsk, orig) |
930 | Cache last used pipe for splice(): = NULL |
931 | page = NULL |
932 | next = NULL |
934 | account_kernel_stack(tsk, 1) |
936 | kcov_task_init(tsk) |
939 | fail_nth = 0 |
943 | throttle_queue = NULL |
950 | Return tsk |
952 | free_stack : |
953 | free_thread_stack(tsk) |
954 | free_tsk : |
955 | free_task_struct(tsk) |
956 | Return NULL |
Name | Describe |
---|---|
copy_process | Create a new process |
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 |