netdev
[Top] [All Lists]

Link State visibility to userspace

To: netdev@xxxxxxxxxxx
Subject: Link State visibility to userspace
From: Brad Hards <bhards@xxxxxxxxxxxxxx>
Date: Mon, 26 Nov 2001 19:03:33 +1100
Sender: owner-netdev@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • Link State visibility to userspace, Brad Hards <=