2 * Copyright (C) 2014 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 decode_type_spec(const char type_buf[MAX_TYPE_SPEC_LEN],
20 struct datum_info_t *type_info);
22 void set_timestamp (struct timespec *out, int64_t target_ns);
24 int64_t get_timestamp_boot (void);
25 int64_t get_timestamp_realtime (void);
26 int64_t get_timestamp_monotonic (void);