Lines Matching refs:path
64 const char *path;
157 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid)
172 if (strncmp(path, dp->name, strlen(dp->name)))
175 if (strcmp(path, dp->name))
188 static void make_device(const char *path,
200 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
203 selabel_lookup(sehandle, &secontext, path, mode);
214 mknod(path, mode, dev);
215 chown(path, uid, -1);
308 uevent->path = "";
324 uevent->path = msg;
354 uevent->action, uevent->path, uevent->subsystem,
366 if (strncmp(uevent->path, "/devices/platform/", 18))
375 parent = strchr(uevent->path + 18, '/');
412 const char *path;
430 path = uevent->path;
431 device = path + 18;
457 slash = strrchr(path, '/');
471 const char *path, int block, int major, int minor, char **links)
476 make_device(devpath, path, block, major, minor);
500 const char *name = uevent->path + 18; /* length of /devices/platform/ */
517 name = strrchr(uevent->path, '/');
543 if (!strncmp(uevent->path, "/devices/platform/", 18))
546 handle_device(uevent->action, devpath, uevent->path, 1,
636 handle_device(uevent->action, devpath, uevent->path, 0,
643 fixup_sys_perms(uevent->path);
712 uevent->firmware, uevent->path);
714 l = asprintf(&root, SYSFS_PREFIX"%s/", uevent->path);
871 static void coldboot(const char *path)
873 DIR *d = opendir(path);