Function report |
Source Code:arch\x86\kernel\ptrace.c |
Create Date:2022-07-28 07:51:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:set_segment_reg
Proto:static int set_segment_reg(struct task_struct *task, unsigned long offset, u16 value)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | task | |
unsigned long | offset | |
u16 | value |
185 | If WARN_ON_ONCE(task == current process) Then Return -EIO |
191 | If Determines whether a value may be installed in a segment register. Then Return -EIO |
204 | Case offset == offsetof(structuser_regs_struct, cs) |
205 | Case offset == offsetof(structuser_regs_struct, ss) |
206 | If Value for the false possibility is greater at compile time(value == 0) Then Return -EIO |
210 | Default |
211 | pt_regs_access(task_pt_regs(task), offset) = value |
212 | Break |
214 | Case offset == offsetof(structuser_regs_struct, gs) |
215 | task_user_gs(task) = value |
218 | Return 0 |
Name | Describe |
---|---|
putreg |
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 |