aboutsummaryrefslogtreecommitdiffstats
path: root/sysfs.h
diff options
context:
space:
mode:
authorPA4WDH2023-05-20 17:17:43 +0200
committerPA4WDH2023-05-20 17:17:43 +0200
commit15d9095122c0d4f9a4dab05fb0e84d84c624e1b4 (patch)
treec6edcc0b2efe1dc68577d57de9de74ae4bf8cdd4 /sysfs.h
parentInitial commit, POC shell script (diff)
downloadcputemp2maxfreq-15d9095122c0d4f9a4dab05fb0e84d84c624e1b4.tar.gz
cputemp2maxfreq-15d9095122c0d4f9a4dab05fb0e84d84c624e1b4.tar.bz2
cputemp2maxfreq-15d9095122c0d4f9a4dab05fb0e84d84c624e1b4.zip
Translate POC to C code0.1
Diffstat (limited to 'sysfs.h')
-rw-r--r--sysfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysfs.h b/sysfs.h
new file mode 100644
index 0000000..ccd2430
--- /dev/null
+++ b/sysfs.h
@@ -0,0 +1,3 @@
+int sysfs_read_str(char *sysfs_file,char *buf,size_t bufsize);
+long int sysfs_read_long_int(char *sysfs_file);
+int sysfs_write_str(char *sysfs_file,char *value,int checkdelay);