link up and don on ether async notification

From: mbartolo
Date: Thu May 31 2007 - 16:52:17 EST


Hi boys,

Is some mechanism which can I use to notify user space program
asynochronously that link on my ethernet device is is down or up ? ( I can't
use polling like ethtool - i think that control every second state of link on
ethernet through some of ioctl is no good).

Is good idea to use inotify on file /sys/class/net/eth0/carrier ?

thanks for suggestion

Michal Bartolomej
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html