函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:puset_change_task_nodemask - change task's mems_allowed and mempolicy*@tsk: the task to change*@newmems: new nodes that the task will be set* We use the mems_allowed_seq seqlock to safely update both tsk->mems_allowed

函数原型:static void cpuset_change_task_nodemask(struct task_struct *tsk, nodemask_t *newmems)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
nodemask_t *newmems
1618  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.
1620  禁止中断()
1621  write_seqcount_begin( & mems_allowed_seq)
1623  nodes_or(mems_allowed, mems_allowed, * newmems)
1624  mpol_rebind_task(tsk, newmems)
1625  mems_allowed等于newmems
1627  write_seqcount_end( & mems_allowed_seq)
1628  开中断()
1630  task_unlock(tsk)
调用者
名称描述
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