i wrote a code using netlink socket to listen events ...... Since i am integrating all in an embedded device , it will be good if i can achieve the same with hotplug ... Thanks a lot .. On Wed, Aug 12, 2009 at 11:50 PM, Stephen Hemminger<shemminger@xxxxxxxxxxxxxxxxxxxx> wrote: > On Tue, 11 Aug 2009 15:17:47 -0700 > Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote: > >> Hi Greg, >> >> > > the linux kernel is running on an embedded box ... so if i can achieve >> > > this using hotplug2 , i can save a lot of flash by not intstalling >> > > ethtool .. >> > > is there any way >> > >> > You are really using hotplug2 for a device? Are you insane? That's >> > very old, unsupported, and buggy code that was a totally bad idea when I >> > wrote it. >> > >> > Please do not use it, it will break and cause bad things to happen. >> > >> > And no, there are no hotplug events for link up/down, use ethtool like >> > it is designed for. >> >> actually there was a patch for KOBJ_CHANGE events when network interface >> flags change, but it never got merged upstream. >> >> Also just using RTNL and listening for IFF_LOWER_UP is way simpler than >> going through uevents. > > Have you looked at netplugd? > > -- > To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html