Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_flags

Proto:static int set_flags(struct task_struct *task, unsigned long value)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
unsigned longvalue
347  regs = task_pt_regs(task)
354  If value & X86_EFLAGS_TF Then clear_tsk_thread_flag(task, rue if TF in eflags artificially )
356  Else if test_tsk_thread_flag(task, rue if TF in eflags artificially ) Then value |= X86_EFLAGS_TF
359  flags = flags & ~FLAG_MASK | value & FLAG_MASK
361  Return 0