Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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().

Proto:struct file *get_mm_exe_file(struct mm_struct *mm)

Type:struct file

Parameter:

TypeParameterName
struct mm_struct *mm
1164  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1165  exe_file = fetch RCU-protected pointer for dereferencing( store ref to file /proc//exe symlink points to )
1166  If exe_file && Not get_file_rcu(exe_file) Then exe_file = NULL
1168  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1169  Return exe_file
Caller
NameDescribe
dup_mmap
get_task_exe_fileget_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).
prctl_set_mm_exe_file
audit_log_d_path_exe