G'day,
I'm trying to test the netif_carrier_off() and netif_carrier_on() calls in my
driver. However these don't seem to be visible to userspace. I searched likely
bits of /proc, tried ethtool and ifconfig man pages, and looked though the
linux/net directory. It doesn't seem that the link state is even used, let
alone visible. Can someone enlighten me?
If there isn't visibility of this already available, would
/proc/net/link_state be a possible candidate?
Interface | Link State
lo: linked
eth0: not linked
I recognise that not all devices support link state reporting, but for some of
the usb devices, it might be useful to detect changes for our hot-plug
support.
Brad
|