函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Retrieve the cpuset for a task

函数原型:static inline struct cpuset *task_cs(struct task_struct *task)

返回类型:struct cpuset

参数:

类型参数名称
struct task_struct *task
200  返回:css_cs(循环获得css)
调用者
名称描述
current_cpuset_is_being_rebound
cpuset_can_attachCalled by cgroups to determine if a cpuset is usable; cpuset_mutex held
cpuset_cpus_allowedpuset_cpus_allowed - return cpus_allowed mask from a tasks cpuset
cpuset_cpus_allowed_fallbackpuset_cpus_allowed_fallback - final fallback before complete catastrophe
cpuset_mems_allowedpuset_mems_allowed - return mems_allowed mask from a tasks cpuset.*@tsk: pointer to task_struct from which to obtain cpuset->mems_allowed.* Description: Returns the nodemask_t mems_allowed of the cpuset* attached to the specified @tsk
__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
cpuset_print_current_mems_allowedpuset_print_current_mems_allowed - prints current's cpuset and mems_allowed* Description: Prints current's name, cpuset name, and cached copy of its* mems_allowed to the kernel log.
__cpuset_memory_pressure_bumppuset_memory_pressure_bump - keep stats of per-cpuset reclaims