tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
Source file repositories/reference/linux-study-clean/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
File Facts
- System
- Linux kernel
- Corpus path
tools/power/cpupower/bindings/python/raw_pylibcpupower.swg- Extension
.swg- Size
- 6319 bytes
- Lines
- 253
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: tools
- Status
- atlas-only
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
../../lib/cpupower_intern.h../../lib/acpi_cppc.h../../lib/cpufreq.h../../lib/cpuidle.h../../lib/cpupower.h../../lib/powercap.h
Detected Declarations
struct cpufreq_policystruct cpufreq_available_governorsstruct cpufreq_available_frequenciesstruct cpufreq_affected_cpusstruct cpufreq_statsstruct cpupower_topologystruct cpuid_core_infostruct powercap_zoneenum acpi_cppc_value
Annotated Snippet
struct cpufreq_policy {
unsigned long min;
unsigned long max;
char *governor;
};
struct cpufreq_available_governors {
char *governor;
struct cpufreq_available_governors *next;
struct cpufreq_available_governors *first;
};
struct cpufreq_available_frequencies {
unsigned long frequency;
struct cpufreq_available_frequencies *next;
struct cpufreq_available_frequencies *first;
};
struct cpufreq_affected_cpus {
unsigned int cpu;
struct cpufreq_affected_cpus *next;
struct cpufreq_affected_cpus *first;
};
struct cpufreq_stats {
unsigned long frequency;
unsigned long long time_in_state;
struct cpufreq_stats *next;
struct cpufreq_stats *first;
};
unsigned long cpufreq_get_freq_kernel(unsigned int cpu);
unsigned long cpufreq_get_freq_hardware(unsigned int cpu);
#define cpufreq_get(cpu) cpufreq_get_freq_kernel(cpu);
unsigned long cpufreq_get_transition_latency(unsigned int cpu);
int cpufreq_get_hardware_limits(unsigned int cpu,
unsigned long *min,
unsigned long *max);
char *cpufreq_get_driver(unsigned int cpu);
void cpufreq_put_driver(char *ptr);
struct cpufreq_policy *cpufreq_get_policy(unsigned int cpu);
void cpufreq_put_policy(struct cpufreq_policy *policy);
struct cpufreq_available_governors
*cpufreq_get_available_governors(unsigned int cpu);
void cpufreq_put_available_governors(
struct cpufreq_available_governors *first);
struct cpufreq_available_frequencies
*cpufreq_get_available_frequencies(unsigned int cpu);
void cpufreq_put_available_frequencies(
struct cpufreq_available_frequencies *first);
struct cpufreq_available_frequencies
*cpufreq_get_boost_frequencies(unsigned int cpu);
void cpufreq_put_boost_frequencies(
struct cpufreq_available_frequencies *first);
Annotation
- Immediate include surface: `../../lib/cpupower_intern.h`, `../../lib/acpi_cppc.h`, `../../lib/cpufreq.h`, `../../lib/cpuidle.h`, `../../lib/cpupower.h`, `../../lib/powercap.h`.
- Detected declarations: `struct cpufreq_policy`, `struct cpufreq_available_governors`, `struct cpufreq_available_frequencies`, `struct cpufreq_affected_cpus`, `struct cpufreq_stats`, `struct cpupower_topology`, `struct cpuid_core_info`, `struct powercap_zone`, `enum acpi_cppc_value`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.