Commits

Anonymous committed 43d5c5f

Comments (0)

Files changed (4)

- - remove TIMEOUT= handling
-
  - move /lib/udev/devices/ to tmpfiles
 
  - trigger --subsystem-match=usb/usb_device

libudev/libudev-device.c

 	struct udev_list tags_list;
 	unsigned long long int seqnum;
 	unsigned long long int usec_initialized;
-	int timeout;
 	int devlink_priority;
 	int refcount;
 	dev_t devnum;
 	return 0;
 }
 
-int udev_device_get_timeout(struct udev_device *udev_device)
-{
-	return udev_device->timeout;
-}
-
-static int udev_device_set_timeout(struct udev_device *udev_device, int timeout)
-{
-	char num[32];
-
-	udev_device->timeout = timeout;
-	snprintf(num, sizeof(num), "%u", timeout);
-	udev_device_add_property(udev_device, "TIMEOUT", num);
-	return 0;
-}
-
 const char *udev_device_get_knodename(struct udev_device *udev_device)
 {
 	return udev_device->knodename;
 		udev_device_set_devpath_old(udev_device, &property[12]);
 	} else if (strncmp(property, "SEQNUM=", 7) == 0) {
 		udev_device_set_seqnum(udev_device, strtoull(&property[7], NULL, 10));
-	} else if (strncmp(property, "TIMEOUT=", 8) == 0) {
-		udev_device_set_timeout(udev_device, strtoull(&property[8], NULL, 10));
 	} else if (strncmp(property, "IFINDEX=", 8) == 0) {
 		udev_device_set_ifindex(udev_device, strtoull(&property[8], NULL, 10));
 	} else if (strncmp(property, "DEVMODE=", 8) == 0) {
 	udev_list_init(udev, &udev_device->sysattr_value_list, true);
 	udev_list_init(udev, &udev_device->sysattr_list, false);
 	udev_list_init(udev, &udev_device->tags_list, true);
-	udev_device->timeout = -1;
 	udev_device->watch_handle = -1;
 	/* copy global properties */
 	udev_list_entry_foreach(list_entry, udev_get_properties_list_entry(udev))

libudev/libudev-private.h

 void udev_device_set_is_initialized(struct udev_device *udev_device);
 int udev_device_add_tag(struct udev_device *udev_device, const char *tag);
 void udev_device_cleanup_tags_list(struct udev_device *udev_device);
-int udev_device_get_timeout(struct udev_device *udev_device);
 unsigned long long udev_device_get_usec_initialized(struct udev_device *udev_device);
 void udev_device_set_usec_initialized(struct udev_device *udev_device, unsigned long long usec_initialized);
 int udev_device_get_devlink_priority(struct udev_device *udev_device);
 
 	event->state = EVENT_QUEUED;
 	udev_list_node_append(&event->node, &event_list);
-
-	/* run all events with a timeout set immediately */
-	if (udev_device_get_timeout(dev) > 0) {
-		event_run(event, true);
-		return 0;
-	}
-
 	return 0;
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.