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:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:getreg

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

Type:unsigned long

Parameter:

TypeParameterName
struct task_struct *task
unsigned longoffset
413  Case offset == offsetof(structuser_regs_struct, cs)
414  Case offset == offsetof(structuser_regs_struct, These functions are used to reference data in other segments. )
415  Case offset == offsetof(structuser_regs_struct, es)
416  Case offset == offsetof(structuser_regs_struct, fs)
417  Case offset == offsetof(structuser_regs_struct, gs)
418  Case offset == offsetof(structuser_regs_struct, ss)
419  Return get_segment_reg(task, offset)
421  Case offset == offsetof(structuser_regs_struct, flags)
422  Return get_flags(task)
425  Case offset == offsetof(structuser_regs_struct, fs_base)
426  Return Read/write a task's FSBASE or GSBASE. This returns the value that* the FS/GS base would have (if the task were to be resumed). These* work on the current task or on a non-running (typically stopped* ptrace child) task.
427  Case offset == offsetof(structuser_regs_struct, gs_base)
428  Return x86_gsbase_read_task(task)
432  Return pt_regs_access(task_pt_regs(task), offset)
Caller
NameDescribe
genregs_get
arch_ptrace