[v1.01] Read file in udev by dynamically reallocating a buffer, instead of allocating a fixed size. Should fix issue #137

This commit is contained in:
Dr-Noob
2022-02-09 22:16:13 +01:00
parent 3046e84b4b
commit c4b2f31320
4 changed files with 22 additions and 4 deletions

View File

@@ -27,7 +27,6 @@
#define _PATH_FREQUENCY_MAX_LEN 100
#define _PATH_CACHE_MAX_LEN 200
#define DEFAULT_FILE_SIZE 4096
char* read_file(char* path, int* len);
long get_max_freq_from_file(uint32_t core);