函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\ptrace.c Create Date:2022-07-27 08:51:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:getreg

函数原型:static unsigned long getreg(struct task_struct *task, unsigned long offset)

返回类型:unsigned long

参数:

类型参数名称
struct task_struct *task
unsigned longoffset
413  :offset恒等于offsetof(structuser_regs_struct, cs)
414  :offset恒等于offsetof(structuser_regs_struct, 取寄存器值(ds))
415  :offset恒等于offsetof(structuser_regs_struct, es)
416  :offset恒等于offsetof(structuser_regs_struct, 取寄存器值(fs))
417  :offset恒等于offsetof(structuser_regs_struct, 取寄存器值(gs))
418  :offset恒等于offsetof(structuser_regs_struct, ss)
419  返回:get_segment_reg(task, offset)
421  :offset恒等于offsetof(structuser_regs_struct, flags)
422  返回:get_flags(task)
425  :offset恒等于offsetof(structuser_regs_struct, fs_base)
426  返回: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  :offset恒等于offsetof(structuser_regs_struct, gs_base)
428  返回:x86_gsbase_read_task(task)
432  返回:pt_regs_access(task_pt_regs(task), offset)
调用者
名称描述
genregs_get
arch_ptrace