函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-29 10:33:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:exec_mmap

函数原型:static int exec_mmap(struct mm_struct *mm)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
1015  tsk等于当前进程
1016  old_mm等于mm
1017  exec_mm_release(tsk, old_mm)
1019  如果old_mm
1020  sync_mm_rss(old_mm)
1027  lock for reading
1030  返回:负EINTR
1033  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.
1034  active_mm等于active_mm
1035  membarrier_exec_mmap(mm)
1036  mm等于mm
1037  active_mm等于mm
1039  vmacache_seqnum等于0
1040  vmacache_flush(tsk)
1041  task_unlock(tsk)
1042  如果old_mm
1043  lease a read lock
1044  BUG_ON(active_mm != old_mm)
1045  setmax_mm_hiwater_rss( & maxrss, old_mm)
1046  A task is exiting. If it owned this mm, find a new owner for the mm.
1047  Decrement the use count and release all resources for an mm.
1048  返回:0
1050  mmdrop(active_mm)
1051  返回:0
调用者
名称描述
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