Lines Matching refs:path

94 	char			*path;  member
158 char path[PATH_MAX + 1]; in fs__read_mounts() local
165 path, type) == 2) { in fs__read_mounts()
168 fs->path = strdup(path); in fs__read_mounts()
170 return fs->path != NULL; in fs__read_mounts()
196 fs->path = strdup(*ptr); in fs__check_mounts()
197 if (!fs->path) in fs__check_mounts()
236 fs->path = strdup(override_path); in fs__env_override()
237 if (!fs->path) in fs__env_override()
247 assert(!fs->path); in fs__init_once()
249 assert(fs->path); in fs__init_once()
255 return fs->path; in fs__mountpoint()
285 fs->path = strdup(mountpoint); in fs__mount()
286 mountpoint = fs->path; in fs__mount()
387 char path[PATH_MAX]; in procfs__read_str() local
393 snprintf(path, sizeof(path), "%s/%s", procfs, entry); in procfs__read_str()
395 return filename__read_str(path, buf, sizep); in procfs__read_str()
401 char path[PATH_MAX]; in sysfs__read_ull_base() local
407 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_ull_base()
409 return filename__read_ull_base(path, value, base); in sysfs__read_ull_base()
424 char path[PATH_MAX]; in sysfs__read_int() local
430 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_int()
432 return filename__read_int(path, value); in sysfs__read_int()
437 char path[PATH_MAX]; in sysfs__read_str() local
443 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_str()
445 return filename__read_str(path, buf, sizep); in sysfs__read_str()
453 char path[PATH_MAX]; in sysfs__read_bool() local
459 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_bool()
460 io.fd = open(path, O_RDONLY); in sysfs__read_bool()
485 char path[PATH_MAX]; in sysctl__read_int() local
491 snprintf(path, sizeof(path), "%s/sys/%s", procfs, sysctl); in sysctl__read_int()
493 return filename__read_int(path, value); in sysctl__read_int()
498 char path[PATH_MAX]; in sysfs__write_int() local
504 if (snprintf(path, sizeof(path), "%s/%s", sysfs, entry) >= PATH_MAX) in sysfs__write_int()
507 return filename__write_int(path, value); in sysfs__write_int()