Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmu_context.c Create Date:2022-07-28 14:24:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:void use_mm(struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
25  tsk = current process
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  If active_mm != mm Then
30  mmgrab() - Pin a &struct mm_struct
31  active_mm = mm
33  mm = mm
34  switch_mm(active_mm, mm, tsk)
35  task_unlock(tsk)
37  finish_arch_post_lock_switch()
40  If active_mm != mm Then mmdrop(active_mm)
Caller
NameDescribe
io_worker_handle_work