函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:19:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static void update_nodemasks_hier(struct cpuset *cs, nodemask_t *new_mems)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cpuset * | cs | |
nodemask_t * | new_mems |
1715 | nodes_and( * new_mems, mems_allowed, effective_mems) |
1721 | 如果Cgroup v2 behavior is used when on default hierarchy or the* cgroup_v2_mode flag is set.且nodes_empty( * new_mems)则new_mems等于effective_mems |
1725 | 如果nodes_equal( * new_mems, effective_mems)则 |
1726 | pos_css等于ss_rightmost_descendant - return the rightmost descendant of a css*@pos: css of interest* Return the rightmost descendant of @pos |
1727 | 继续下一循环 |
1730 | 如果非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则继续下一循环 |
1734 | spin_lock_irq( & callback_lock) |
1735 | effective_mems等于new_mems |
1736 | spin_unlock_irq( & callback_lock) |
1738 | WARN_ON(!Cgroup v2 behavior is used when on default hierarchy or the* cgroup_v2_mode flag is set. && !nodes_equal(mems_allowed, effective_mems)) |
1744 | 设置一个css引用 |
名称 | 描述 |
---|---|
update_nodemask | Handle user request to change the 'mems' memory placement* of a cpuset |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |