tools/power/cpupower/lib/cpupower_intern.h

Source file repositories/reference/linux-study-clean/tools/power/cpupower/lib/cpupower_intern.h

File Facts

System
Linux kernel
Corpus path
tools/power/cpupower/lib/cpupower_intern.h
Extension
.h
Size
364 bytes
Lines
13
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#define PATH_TO_CPU "/sys/devices/system/cpu/"

#ifndef MAX_LINE_LEN
#define MAX_LINE_LEN 4096
#endif

#define SYSFS_PATH_MAX 255

int is_valid_path(const char *path);
unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen);
unsigned int cpupower_write_sysfs(const char *path, char *buf, size_t buflen);

Annotation

Implementation Notes