函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:03:35
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Rebind each vma in mm to new nodemask.* Call holding a reference to mm. Takes mm->mmap_sem during call.

函数原型:void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
nodemask_t *new
382  lock for writing
383 vma循环mpol_rebind_policy - Migrate a policy to a different set of nodes* Per-vma policies are protected by mmap_sem. Allocations using per-task* policies are protected by task->mems_allowed_seq to prevent a premature
385  lease a write lock
调用者
名称描述
cpuset_attach
update_tasks_nodemaskpdate_tasks_nodemask - Update the nodemasks of tasks in the cpuset.*@cs: the cpuset in which each task's mems_allowed mask needs to be changed* Iterate through each task of @cs updating its mems_allowed to the* effective cpuset's