Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cpuset.c Create Date:2022-07-28 11:16:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Retrieve the cpuset for a task

Proto:static inline struct cpuset *task_cs(struct task_struct *task)

Type:struct cpuset

Parameter:

TypeParameterName
struct task_struct *task
200  Return css_cs(ask_css - obtain css for (task, subsys)*@task: the target task*@subsys_id: the target subsystem ID* See task_css_check().)
Caller
NameDescribe
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