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:get_segment_reg

Proto:static u16 get_segment_reg(struct task_struct *task, unsigned long offset)

Type:u16

Parameter:

TypeParameterName
struct task_struct *task
unsigned longoffset
171  If offset != offsetof(structuser_regs_struct, gs) Then retval = pt_regs_access(task_pt_regs(task), offset)
173  Else
174  If task == current process Then retval = x86-32 user GS accessors:(task_pt_regs(task))
176  Else retval = task_user_gs(task)
179  Return retval
Caller
NameDescribe
getreg