函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpuset_migrate_mm

函数原型:static void cpuset_migrate_mm(struct mm_struct *mm, const nodemask_t *from, const nodemask_t *to)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
const nodemask_t *from
const nodemask_t *to
1588  mwork等于分配内存并置零
1589  如果mwork
1590  mm等于mm
1591  from等于from
1592  to等于to
1593  INIT_WORK( & work, cpuset_migrate_mm_workfn)
1594  queue_work - queue work on a workqueue*@wq: workqueue to use*@work: work to queue* Returns %false if @work was already on a queue, %true otherwise.* We queue the work to the CPU on which it was submitted, but if the CPU dies
1595  否则
1596  Decrement the use count and release all resources for an mm.
调用者
名称描述
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