Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:41 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pdate_nodemasks_hier - Update effective nodemasks and tasks in the subtree*@cs: the cpuset to consider*@new_mems: a temp variable for calculating new effective_mems* When configured nodemask is changed, the effective nodemasks of this cpuset
Proto:static void update_nodemasks_hier(struct cpuset *cs, nodemask_t *new_mems)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuset * | cs | |
| nodemask_t * | new_mems |
| 1715 | nodes_and( * new_mems, mems_allowed, effective_mems) |
| 1721 | If Cgroup v2 behavior is used when on default hierarchy or the* cgroup_v2_mode flag is set. && nodes_empty( * new_mems) Then new_mems = effective_mems |
| 1725 | If nodes_equal( * new_mems, effective_mems) Then |
| 1726 | pos_css = ss_rightmost_descendant - return the rightmost descendant of a css*@pos: css of interest* Return the rightmost descendant of @pos |
| 1727 | Continue |
| 1730 | If Not ss_tryget_online - try to obtain a reference on the specified css if online*@css: target css* Obtain a reference on @css if it's online Then Continue |
| 1734 | spin_lock_irq( & callback_lock) |
| 1735 | effective_mems = new_mems |
| 1736 | spin_unlock_irq( & callback_lock) |
| Name | Describe |
|---|---|
| update_nodemask | Handle user request to change the 'mems' memory placement* of a cpuset |
| 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 |