Lines Matching refs:path
49 const char *path; member
161 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid) in get_device_perm() argument
176 if (strncmp(path, dp->name, strlen(dp->name))) in get_device_perm()
179 if (strcmp(path, dp->name)) in get_device_perm()
192 static void make_device(const char *path, in make_device() argument
201 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR); in make_device()
209 mknod(path, mode, dev); in make_device()
210 chown(path, uid, -1); in make_device()
235 uevent->path = ""; in parse_event()
250 uevent->path = msg; in parse_event()
277 uevent->action, uevent->path, uevent->subsystem, in parse_event()
284 const char *path; in parse_platform_block_device() local
302 path = uevent->path; in parse_platform_block_device()
303 driver = path + 18; in parse_platform_block_device()
331 slash = strrchr(path, '/'); in parse_platform_block_device()
354 fixup_sys_perms(uevent->path); in handle_device_event()
361 name = strrchr(uevent->path, '/'); in handle_device_event()
375 if (!strncmp(uevent->path, "/devices/platform/", 18)) in handle_device_event()
433 make_device(devpath, uevent->path, block, uevent->major, uevent->minor); in handle_device_event()
507 uevent->path, uevent->firmware); in process_firmware_event()
509 l = asprintf(&root, SYSFS_PREFIX"%s/", uevent->path); in process_firmware_event()
678 static void coldboot(const char *path) in coldboot() argument
680 DIR *d = opendir(path); in coldboot()