Lines Matching full:path
45 const char *path;
239 static int get_device_perm_inner(struct perms_ *perms, const char *path,
246 if(strncmp(path, perms[i].name, strlen(perms[i].name)))
249 if(strcmp(path, perms[i].name))
261 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid)
265 if (get_device_perm_inner(qemu_perms, path, uid, gid, &perm) == 0) {
267 } else if (get_device_perm_inner(devperms, path, uid, gid, &perm) == 0) {
280 if (strncmp(path, dp->name, strlen(dp->name)))
283 if (strcmp(path, dp->name))
298 static void make_device(const char *path, int block, int major, int minor)
308 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
316 mknod(path, mode, dev);
317 chown(path, uid, -1);
342 uevent->path = "";
355 uevent->path = msg;
376 uevent->action, uevent->path, uevent->subsystem,
391 name = strrchr(uevent->path, '/');
503 uevent->path, uevent->firmware);
505 l = asprintf(&root, SYSFS_PREFIX"%s/", uevent->path);
636 static void coldboot(int event_fd, const char *path)
638 DIR *d = opendir(path);