Function report |
Source Code:arch\x86\kernel\process.c |
Create Date:2022-07-28 07:48:39 |
Last Modify:2020-03-16 17:03:44 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:copy_thread_tls
Proto:int copy_thread_tls(unsigned long clone_flags, unsigned long sp, unsigned long arg, struct task_struct *p, unsigned long tls)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | clone_flags | |
unsigned long | sp | |
unsigned long | arg | |
struct task_struct * | p | |
unsigned long | tls |
131 | ret = 0 |
133 | childregs = task_pt_regs(p) |
137 | These two fields must be together. They form a stack frame header,* needed by get_frame_pointer(). = 0 |
138 | ret_addr = ret_from_fork |
139 | sp = fork_frame |
140 | IO permissions: = NULL |
141 | memset( Save middle states of ptrace breakpoints , 0, size of Save middle states of ptrace breakpoints ) |
149 | Save a segment register away:(These functions are used to reference data in other segments. , ds) |
168 | bx = 0 |
169 | childregs = current_pt_regs() |
170 | ax = 0 |
179 | If clone_flags & create a new TLS for the child Then ret = set_new_tls(p, tls) |
182 | If Not ret && Value for the false possibility is greater at compile time(test_tsk_thread_flag(current process, uses I/O bitmap )) Then io_bitmap_share(p) |
185 | Return ret |
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 |