函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Handle PTRACE_POKEUSR calls for the debug register area.

函数原型:static int ptrace_set_debugreg(struct task_struct *tsk, int n, unsigned long val)

返回类型:int

参数:

类型参数名称
struct task_struct *tsk
intn
unsigned longval
689  thread等于* New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct.
691  rc等于负EIO
693  如果n小于Total number of available HW breakpoint registers
694  rc等于ptrace_set_breakpoint_addr(tsk, n, val)
695  否则如果n恒等于6则
696  Debug status used for traps, single steps, etc... 等于val
697  rc等于0
698  否则如果n恒等于7则
699  rc等于Handle ptrace writes to debug register 7.
700  如果非rc Keep track of the exact dr7 value set by the user 等于val
703  返回:rc
调用者
名称描述
arch_ptrace