Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static void cpuset_change_task_nodemask(struct task_struct *tsk, nodemask_t *newmems)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | tsk | |
nodemask_t * | newmems |
1620 | local_irq_disable() |
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) |
1630 | task_unlock(tsk) |
Name | Describe |
---|---|
update_tasks_nodemask | pdate_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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |