Function report |
Source Code:kernel\ptrace.c |
Create Date:2022-07-28 09:13:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static int ptrace_check_attach(struct task_struct *child, bool ignore_state)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | child | |
| bool | ignore_state |
| 240 | read_lock( & tasklist_lock) |
| 241 | If ptrace && Recipient of SIGCHLD, wait4() reports: == current process Then |
| 242 | WARN_ON(run state == __TASK_TRACED) |
| 247 | If ignore_state || Ensure that nothing can wake it up, even SIGKILL Then ret = 0 |
| 250 | read_unlock( & tasklist_lock) |
| 252 | If Not ret && Not ignore_state Then |
| 253 | If Not wait_task_inactive(child, __TASK_TRACED) Then |
| 259 | WARN_ON(run state == __TASK_TRACED) |
| 264 | Return ret |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE4 | |
| COMPAT_SYSCALL_DEFINE4 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |