[Buildroot] efficient usb plug in notification

Christopher Taylor chtaylo3 at gmail.com
Thu Aug 7 03:26:18 UTC 2008

> You can replace /sbin/hotplug with a shell script/program of your choice.
> This gets called by the kernel for every plug event. Just have your version
> of hotplug react to the plug events you care about. Then you "just" need to
> figure out how to interact between the hotplug script and your user space
> libraries, programs, etc.

Given the power concerns that we have, this may be the best idea.
I'll have to look into what's passed to the hotplug script/program and
see if we can get all the information from that.  Thanx so much for
this tip!

I'm moderately familiar with udev/dbus/hal but I have some
reservations about using them due to the extra cycles taken up.

This hotplyg approach seems promising for power conscious platforms
assuming it provides enough information.   A named pipe to our
application should solve this problem.

Thanx everyone for sharing your experience!


More information about the buildroot mailing list