2 * Copyright (C) 2014-2015 Intel Corporation.
10 int sysfs_read_int (const char path[PATH_MAX], int *value);
11 int sysfs_write_int (const char path[PATH_MAX], int value);
13 int sysfs_read_str (const char path[PATH_MAX], char *buf, int buf_len);
14 int sysfs_write_str (const char path[PATH_MAX], const char *buf);
16 int sysfs_read_float (const char path[PATH_MAX], float *value);
17 int sysfs_write_float(const char path[PATH_MAX], float value);
19 int sysfs_read_uint64(const char path[PATH_MAX], uint64_t *value);
21 void set_timestamp (struct timespec *out, int64_t target_ns);
23 int64_t get_timestamp_boot (void);
24 int64_t get_timestamp_thread (void);
25 int64_t get_timestamp_realtime (void);
26 int64_t get_timestamp_monotonic (void);