函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:57:33
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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).

函数原型:struct file *get_task_exe_file(struct task_struct *task)

返回类型:struct file

参数:

类型参数名称
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等于内存信息
1187  如果mm
1188  如果非任务标志按位与I am a kernel thread 的值则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  返回:exe_file
调用者
名称描述
audit_exe_compare