Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:58:04
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_task_exe_file - acquire a reference to the task's executable file* Returns %NULL if task's mm (if any) has no associated executable file or* this is a kernel thread with borrowed mm (see the comment above get_task_mm).

Proto:struct file *get_task_exe_file(struct task_struct *task)

Type:struct file

Parameter:

TypeParameterName
struct task_struct *task
1182  struct file * exe_file = NULL
1185  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.
1186  mm = mm
1187  If mm Then
1188  If Not ( Per task flags (PF_*), defined further below: & I am a kernel thread ) Then exe_file = get_mm_exe_file - acquire a reference to the mm's executable file* Returns %NULL if mm has no associated executable file.* User must release file via fput().
1191  task_unlock(task)
1192  Return exe_file
Caller
NameDescribe
audit_exe_compare