函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-27 06:58:36
Last Modify:2021-07-28 10:30:23 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:清除线程指定标志

函数原型:static inline void clear_tsk_thread_flag(struct task_struct *tsk, int flag)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
intflag
1736  clear_ti_thread_flag(任务栈信息(tsk), flag)
调用者
名称描述
do_debugOur handling of the processor debug registers is non-trivial.* We do not clear them on entry and exit from the kernel. Therefore* it is possible to get a watchpoint trap here from inside the kernel.* However, the code in
speculation_ctrl_update_tif
task
enable_single_stepEnable single-stepping. Return nonzero if user mode is not using TF itself.
set_task_blockstep
user_disable_single_step
copy_process创建进程
__exit_signalThis function expects the tasklist_lock write-locked.
__ptrace_unlink__ptrace_unlink - unlink ptracee and restore its execution state*@child: ptracee to be unlinked* Remove @child from the ptrace list, move it back to the original parent,* and restore the execution state so that it conforms to the group stop* state
ptrace_resume
flush_signalsFlush all pending signals for this kthread.
klp_try_switch_taskTry to safely switch a task to the target patch state. If it's currently* running, or it's sleeping on a to-be-patched or to-be-unpatched function, or* if the stack is unreliable, return false.
klp_try_complete_transitionTry to switch all remaining tasks to the target patch state by walking the* stacks of sleeping tasks and looking for any to-be-patched or* to-be-unpatched functions. If such functions are found, the task can't be* switched yet.
klp_reverse_transitionThis function can be called in the middle of an existing transition to* reverse the direction of the target patch state. This can be done to* effectively cancel an existing enable or disable operation if there are any
audit_alloc安全审计
uprobe_deny_signalIf we are singlestepping, then ensure this thread is not connected to* non-fatal signals until completion of singlestep. When xol insn itself* triggers the signal, restart the original insn even if the task is
user_return_notifier_unregisterRemoves a registered user return notifier. Must be called from atomic* context, and from the same cpu registration occurred in.
zap_threads
clear_tsk_need_resched清除调度位
set_flags