diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:00:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:00:20 +0000 |
commit | fcb4cb5c3d0fec0fede160d565134d553d783fb2 (patch) | |
tree | 7be42535554ca6badc1847d83ef123f4dc3c5506 /src/devlist.h | |
parent | Initial commit. (diff) | |
download | powertop-upstream.tar.xz powertop-upstream.zip |
Adding upstream version 2.15.upstream/2.15upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/devlist.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/devlist.h b/src/devlist.h new file mode 100644 index 0000000..35dfd6c --- /dev/null +++ b/src/devlist.h @@ -0,0 +1,27 @@ +#ifndef __INCLUDE_GUARD_DEVLIST_H__ +#define __INCLUDE_GUARD_DEVLIST_H__ + +struct devuser { + unsigned int pid; + char comm[32]; + char device[252]; +}; + +class device; + +struct devpower { + char device[252]; + double power; + class device *dev; +}; + +extern void clean_open_devices(); +extern void collect_open_devices(void); + +extern void clear_devpower(void); +extern void register_devpower(const char *devstring, double power, class device *dev); +extern void run_devpower_list(void); + +extern void report_show_open_devices(void); + +#endif |