Lines Matching refs:entry
441 int procfs__read_str(const char *entry, char **buf, size_t *sizep) in procfs__read_str() argument
449 snprintf(path, sizeof(path), "%s/%s", procfs, entry); in procfs__read_str()
454 static int sysfs__read_ull_base(const char *entry, in sysfs__read_ull_base() argument
463 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_ull_base()
468 int sysfs__read_xll(const char *entry, unsigned long long *value) in sysfs__read_xll() argument
470 return sysfs__read_ull_base(entry, value, 16); in sysfs__read_xll()
473 int sysfs__read_ull(const char *entry, unsigned long long *value) in sysfs__read_ull() argument
475 return sysfs__read_ull_base(entry, value, 0); in sysfs__read_ull()
478 int sysfs__read_int(const char *entry, int *value) in sysfs__read_int() argument
486 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_int()
491 int sysfs__read_str(const char *entry, char **buf, size_t *sizep) in sysfs__read_str() argument
499 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_str()
504 int sysfs__read_bool(const char *entry, bool *value) in sysfs__read_bool() argument
510 ret = sysfs__read_str(entry, &buf, &size); in sysfs__read_bool()
546 int sysfs__write_int(const char *entry, int value) in sysfs__write_int() argument
554 if (snprintf(path, sizeof(path), "%s/%s", sysfs, entry) >= PATH_MAX) in sysfs__write_int()