Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:These functions flushes out all traces of the currently running executable* so that a new one can be started

Proto:void __set_task_comm(struct task_struct *tsk, const char *buf, bool exec)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
const char *buf
boolexec
1244  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
1245  trace_task_rename(tsk, buf)
1246  Copy a NUL terminated string into a sized buffer
1247  task_unlock(tsk)
1248  perf_event_comm(tsk, exec)
Caller
NameDescribe
setup_new_exec
set_task_comm