Lines Matching refs:path
130 const char *path;
245 static int read_file(const char *path, char *buf, size_t sz)
250 fd = open(path, O_RDONLY, 0);
272 static int read_file_int(const char *path, int *val)
279 ret = read_file(path, buf, sizeof(buf));
327 const char *path, bool online)
338 "/sys/%s/capacity", path);
358 uevent->path = "";
374 uevent->path = msg;
395 uevent->action, uevent->path, uevent->subsystem,
409 char *path;
412 if (uevent->path[0] == '\0')
414 ret = asprintf(&path, "/sys/%s/type", uevent->path);
417 ret = read_file(path, ps_type, sizeof(ps_type));
418 free(path);
437 supply = add_supply(charger, uevent->ps_name, ps_type, uevent->path,
572 static void coldboot(struct charger *charger, const char *path,
577 LOGV("doing coldboot '%s' in '%s'\n", event, path);
578 DIR *d = opendir(path);