函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmu_context.c Create Date:2022-07-27 15:49:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:se_mm* Makes the calling kernel thread take on the specified* mm context.* (Note: this routine is intended to be called only* from a kernel thread context)

函数原型:void use_mm(struct mm_struct *mm)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
25  tsk等于当前进程
27  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.
28  active_mm等于active_mm
29  如果active_mm不等于mm
30  mmgrab() - Pin a &struct mm_struct
31  active_mm等于mm
33  mm等于mm
34  切换虚拟地址空间
35  task_unlock(tsk)
37  finish_arch_post_lock_switch()
40  如果active_mm不等于mmmmdrop(active_mm)
调用者
名称描述
io_worker_handle_work
io_submit_sqes