Lines Matching defs:path

60     const char *path;
86 char *path;
163 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid)
178 if (strncmp(path, dp->name, strlen(dp->name)))
181 if (strcmp(path, dp->name))
194 static void make_device(const char *path,
204 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
207 selabel_lookup(sehandle, &secontext, path, mode);
218 mknod(path, mode, dev);
219 chown(path, uid, -1);
228 static void add_platform_device(const char *path)
230 int path_len = strlen(path);
233 const char *name = path;
235 if (!strncmp(path, "/devices/", 9)) {
244 (path[bus->path_len] == '/') &&
245 !strncmp(path, bus->path, bus->path_len))
250 INFO("adding platform device %s (%s)\n", name, path);
253 bus->path = strdup(path);
255 bus->name = bus->path + (name - path);
260 * given a path that may start with a platform device, find the length of the
264 static struct platform_node *find_platform_device(const char *path)
266 int path_len = strlen(path);
273 (path[bus->path_len] == '/') &&
274 !strncmp(path, bus->path, bus->path_len))
281 static void remove_platform_device(const char *path)
288 if (!strcmp(path, bus->path)) {
290 free(bus->path);
319 uevent->path = "";
335 uevent->path = msg;
365 uevent->action, uevent->path, uevent->subsystem,
378 pdev = find_platform_device(uevent->path);
388 parent = strchr(uevent->path + pdev->path_len, '/');
437 pdev = find_platform_device(uevent->path);
470 slash = strrchr(uevent->path, '/');
480 const char *path, int block, int major, int minor, char **links)
485 make_device(devpath, path, block, major, minor);
509 const char *path = uevent->path;
512 add_platform_device(path);
514 remove_platform_device(path);
526 name = strrchr(uevent->path, '/');
552 if (!strncmp(uevent->path, "/devices/", 9))
555 handle_device(uevent->action, devpath, uevent->path, 1,
645 handle_device(uevent->action, devpath, uevent->path, 0,
652 fixup_sys_perms(uevent->path);
721 uevent->firmware, uevent->path);
723 l = asprintf(&root, SYSFS_PREFIX"%s/", uevent->path);
881 static void coldboot(const char *path)
883 DIR *d = opendir(path);