函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptrace_traceme -- helper for PTRACE_TRACEME* Performs checks and sets PT_PTRACED.* Should be used by all ptrace implementations for PTRACE_TRACEME.

函数原型:static int ptrace_traceme(void)

返回类型:int

参数:

475  ret等于负EPERM
477  write_lock_irq( & tasklist_lock)
479  如果非ptrace
480  ret等于security_ptrace_traceme(parent)
486  如果非ret且非flags按位与Getting shut down 的值则
487  ptrace等于PT_PTRACED
491  write_unlock_irq( & tasklist_lock)
493  返回:ret
调用者
名称描述
SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE4