Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:These ascii lists should be read in a single call, by using a user* buffer large enough to hold the entire map

Proto:static int cpuset_common_seq_show(struct seq_file *sf, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *sf
void *v
2404  cs = css_cs(seq_css(sf))
2405  type = private
2406  ret = 0
2408  spin_lock_irq( & callback_lock)
2411  Case type == FILE_CPULIST
2412  seq_printf(sf, "%*pbl\n", cpumask_pr_args - printf args to output a cpumask*@maskp: cpumask to be printed* Can be used to provide arguments for '%*pb[l]' when printing a cpumask.( user-configured CPUs and Memory Nodes allow to tasks ))
2413  Break
2414  Case type == FILE_MEMLIST
2415  seq_printf(sf, "%*pbl\n", demask_pr_args - printf args to output a nodemask*@maskp: nodemask to be printed* Can be used to provide arguments for '%*pb[l]' when printing a nodemask.( & mems_allowed))
2416  Break
2417  Case type == FILE_EFFECTIVE_CPULIST
2418  seq_printf(sf, "%*pbl\n", cpumask_pr_args - printf args to output a cpumask*@maskp: cpumask to be printed* Can be used to provide arguments for '%*pb[l]' when printing a cpumask.( effective CPUs and Memory Nodes allow to tasks ))
2419  Break
2420  Case type == FILE_EFFECTIVE_MEMLIST
2421  seq_printf(sf, "%*pbl\n", demask_pr_args - printf args to output a nodemask*@maskp: nodemask to be printed* Can be used to provide arguments for '%*pb[l]' when printing a nodemask.( & effective_mems))
2422  Break
2423  Case type == FILE_SUBPARTS_CPULIST
2424  seq_printf(sf, "%*pbl\n", cpumask_pr_args - printf args to output a cpumask*@maskp: cpumask to be printed* Can be used to provide arguments for '%*pb[l]' when printing a cpumask.(* CPUs allocated to child sub-partitions (default hierarchy only) * - CPUs granted by the parent = effective_cpus U subparts_cpus * - effective_cpus and subparts_cpus are mutually exclusive. * effective_cpus contains only onlined CPUs, but subparts_cpus * ))
2425  Break
2426  Default
2427  ret = -EINVAL
2430  spin_unlock_irq( & callback_lock)
2431  Return ret