函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:arest_hardwall_ancestor() - Returns the nearest mem_exclusive or* mem_hardwall ancestor to the specified cpuset. Call holding* callback_lock. If no ancestor is mem_exclusive or mem_hardwall* (an unusual configuration), then returns the root cpuset.

函数原型:static struct cpuset *nearest_hardwall_ancestor(struct cpuset *cs)

返回类型:struct cpuset

参数:

类型参数名称
struct cpuset *cs
3370  当非is_mem_exclusive(cs)或is_mem_hardwall(cs)的值且parent_cs(cs)循环
3371  cs等于parent_cs(cs)
3372  返回:cs
调用者
名称描述
__cpuset_node_allowedpuset_node_allowed - Can we allocate on a memory node?*@node: is this an allowed node?*@gfp_mask: memory allocation flags* If we're in interrupt, yes, we can always allocate. If @node is set in* current's mems_allowed, yes