函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return in *pmask the portion of a cpusets's mems_allowed that* are online, with memory

函数原型:static void guarantee_online_mems(struct cpuset *cs, nodemask_t *pmask)

返回类型:void

参数:

类型参数名称
struct cpuset *cs
nodemask_t *pmask
412  当非nodes_intersects(effective_mems, The following particular system nodemasks and operations* on them manage all possible and online nodes.[N_MEMORY])循环
413  cs等于parent_cs(cs)
414  nodes_and( * pmask, effective_mems, The following particular system nodemasks and operations* on them manage all possible and online nodes.[N_MEMORY])
调用者
名称描述
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
cpuset_attach
cpuset_mems_allowedpuset_mems_allowed - return mems_allowed mask from a tasks cpuset.*@tsk: pointer to task_struct from which to obtain cpuset->mems_allowed.* Description: Returns the nodemask_t mems_allowed of the cpuset* attached to the specified @tsk