Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\ptrace.c Create Date:2022-07-28 09:13:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ptrace_resume

Proto:static int ptrace_resume(struct task_struct *child, long request, unsigned long data)

Type:int

Parameter:

TypeParameterName
struct task_struct *child
longrequest
unsigned longdata
811  If Not Test if 'sig' is valid signal. Use this instead of testing _NSIG directly Then Return -EIO
814  If request == PTRACE_SYSCALL Then Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
816  Else clear_tsk_thread_flag(child, syscall trace active )
820  If request == PTRACE_SYSEMU || request == PTRACE_SYSEMU_SINGLESTEP Then Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
822  Else clear_tsk_thread_flag(child, syscall emulation active )
826  If is_singleblock(request) Then
827  If Value for the false possibility is greater at compile time(!arch_has_block_step()) Then Return -EIO
829  user_enable_block_step(child)
830  Else if is_singlestep(request) || is_sysemu_singlestep(request) Then
831  If Value for the false possibility is greater at compile time(!arch_has_single_step()) Then Return -EIO
833  user_enable_single_step(child)
834  Else
835  user_disable_single_step(child)
851  need_siglock = data && Not thread_group_empty(current process)
852  If need_siglock Then spin_lock_irq( & siglock)
854  exit code = data
855  wake_up_state(child, __TASK_TRACED)
856  If need_siglock Then spin_unlock_irq( & siglock)
859  Return 0
Caller
NameDescribe
ptrace_request