函数逻辑报告 |
Source Code:kernel\ptrace.c |
Create Date:2022-07-27 10:13:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ptrace_check_attach - check whether ptracee is ready for ptrace operation*@child: ptracee to check for*@ignore_state: don't check whether @child is currently %TASK_TRACED* Check whether @child is being ptraced by %current and ready for further
函数原型:static int ptrace_check_attach(struct task_struct *child, bool ignore_state)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | child | |
bool | ignore_state |
240 | read_lock( & tasklist_lock) |
241 | 如果ptrace且 Recipient of SIGCHLD, wait4() reports: 恒等于当前进程则 |
242 | WARN_ON(任务状态 == __TASK_TRACED) |
250 | read_unlock( & tasklist_lock) |
252 | 如果非ret且非ignore_state则 |
253 | 如果非wait_task_inactive(child, __TASK_TRACED)则 |
259 | WARN_ON(任务状态 == __TASK_TRACED) |
264 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |