Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_mm_exe_file - change a reference to the mm's executable file* This changes mm's executable file (shown as symlink /proc/[pid]/exe)

Proto:void set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm>exe_file, but does so without using set_mm_exe_file() in order
struct file *new_exe_file
1145  old_exe_file = Dependency order vs. p above. ( store ref to file /proc//exe symlink points to )
1147  If new_exe_file Then get_file(new_exe_file)
1149  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization( store ref to file /proc//exe symlink points to , new_exe_file)
1150  If old_exe_file Then fput(old_exe_file)
Caller
NameDescribe
__mmput