函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file)

返回类型:void

参数:

类型参数名称
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  如果new_exe_fileget_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  如果old_exe_filefput(old_exe_file)
调用者
名称描述
__mmput
flush_old_execCalling this is the point of no return. None of the failures will be* seen by userspace since either the process is already taking a fatal* signal (via de_thread() or coredump), or will have SEGV raised