Skip to contentSkip to conversation

wait_for_sysfs bluetooth class update

PATCH Kay Sievers 2 participants 3 messages Oct 6, 2004 – Oct 7, 2004

lore
Share & tools
lore
#0 lore raw

Here is the file to wait for the bluetooth class, as it is not a "dev" file. udev waits for 10 seconds here too.

If the wait binary works as expected we may remove all the waiting stuff from the udev sources sometimes?

Thanks,
Kay

===== wait_for_sysfs.c 1.2 vs edited =====

wait_for_sysfs.c +1 -0
@@ -61,6 +61,7 @@ static int wait_for_class_device_attribu
 		{ .subsystem = "scsi_device",	.file = NULL },
 		{ .subsystem = "pcmcia_socket",	.file = "card_type" },
 		{ .subsystem = "usb_host",	.file = NULL },
+		{ .subsystem = "bluetooth",	.file = "address" },
 		{ NULL, NULL }
 	};
 	struct class_file *classfile;
#1 lore raw
Quoted 2 lines · Kay Sievers

Here is the file to wait for the bluetooth class, as it is not a "dev" file. udev waits for 10 seconds here too.

Ah crap, I just released 033. Oh well, I've applied this to the tree now :)

Quoted 2 lines

If the wait binary works as expected we may remove all the waiting stuff from the udev sources sometimes?

I think so. I added the wait_for_sysfs file to the Gentoo udev package. Let's see how well it works out, and if no one complains I think we should remove it.

thanks,

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Kay Sievers
Quoted 6 lines · Greg KH
Quoted 2 lines · Kay Sievers

Here is the file to wait for the bluetooth class, as it is not a "dev" file. udev waits for 10 seconds here too.

Ah crap, I just released 033. Oh well, I've applied this to the tree now :)

I'm on the way to Boston now, so my queue is empty for the next day :)

Quoted 6 lines
Quoted 2 lines

If the wait binary works as expected we may remove all the waiting stuff from the udev sources sometimes?

I think so. I added the wait_for_sysfs file to the Gentoo udev package. Let's see how well it works out, and if no one complains I think we should remove it.

Great! I expect the Gentoo people will watch their syslog :) So we may get an almost complete version soon and people can stop complaining about the sysfs timing.

Thanks,
Kay

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel