Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sched_partition_show

Proto:static int sched_partition_show(struct seq_file *seq, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *seq
void *v
2482  cs = css_cs(seq_css(seq))
2485  Case partition root state == PRS_ENABLED
2486  seq_puts(seq, "root\n")
2487  Break
2488  Case partition root state == Partition root states:* 0 - not a partition root* 1 - partition root* -1 - invalid partition root* None of the cpus in cpus_allowed can be put into the parent's* subparts_cpus. In this case, the cpuset is not a real partition* root anymore
2489  seq_puts(seq, "member\n")
2490  Break
2491  Case partition root state == PRS_ERROR
2492  seq_puts(seq, "root invalid\n")
2493  Break
2495  Return 0