Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:set_segment_reg

Proto:static int set_segment_reg(struct task_struct *task, unsigned long offset, u16 value)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
unsigned longoffset
u16value
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
Caller
NameDescribe
putreg