函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptrace_detach

函数原型:static int ptrace_detach(struct task_struct *child, unsigned int data)

返回类型:int

参数:

类型参数名称
struct task_struct *child
unsigned intdata
551  如果非Test if 'sig' is valid signal. Use this instead of testing _NSIG directly 则返回:负EIO
555  Called by kernel/ptrace.c when detaching..* Make sure the single step bit is not set.
557  write_lock_irq( & tasklist_lock)
562  WARN_ON(!ptrace || 进程退出时状态)
567  进程退出时发出的标号等于data
568  Called with tasklist_lock held for writing
569  write_unlock_irq( & tasklist_lock)
571  proc_ptrace_connector(child, PTRACE_DETACH)
573  返回:0
调用者
名称描述
ptrace_request