Lines Matching refs:devpath
558 static void handle_device(const char *action, const char *devpath, in handle_device() argument
564 make_device(devpath, path, block, major, minor, (const char **)links); in handle_device()
567 make_link_init(devpath, links[i]); in handle_device()
574 remove_link(devpath, links[i]); in handle_device()
576 unlink(devpath); in handle_device()
624 char devpath[96]; in handle_block_device_event() local
631 snprintf(devpath, sizeof(devpath), "%s%s", base, name); in handle_block_device_event()
637 handle_device(uevent->action, devpath, uevent->path, 1, in handle_block_device_event()
643 static bool assemble_devpath(char *devpath, const char *dirname, in assemble_devpath() argument
646 int s = snprintf(devpath, DEVPATH_LEN, "%s/%s", dirname, devname); in assemble_devpath()
659 static void mkdir_recursive_for_devpath(const char *devpath) in mkdir_recursive_for_devpath() argument
664 strcpy(dir, devpath); in mkdir_recursive_for_devpath()
679 char devpath[DEVPATH_LEN] = {0}; in handle_generic_device_event() local
707 if (!assemble_devpath(devpath, subsystem->dirname, devname)) in handle_generic_device_event()
709 mkdir_recursive_for_devpath(devpath); in handle_generic_device_event()
713 if (!assemble_devpath(devpath, "/dev", uevent->device_name)) in handle_generic_device_event()
715 mkdir_recursive_for_devpath(devpath); in handle_generic_device_event()
727 snprintf(devpath, sizeof(devpath), "/dev/bus/usb/%03d", bus_id); in handle_generic_device_event()
728 make_dir(devpath, 0755); in handle_generic_device_event()
729 snprintf(devpath, sizeof(devpath), "/dev/bus/usb/%03d/%03d", bus_id, device_id); in handle_generic_device_event()
769 if (!devpath[0]) in handle_generic_device_event()
770 snprintf(devpath, sizeof(devpath), "%s%s", base, name); in handle_generic_device_event()
772 handle_device(uevent->action, devpath, uevent->path, 0, in handle_generic_device_event()