public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: linux-kernel@vger.kernel.org
Subject: Re: Detecting link up
Date: Wed, 18 May 2005 21:33:02 +0400	[thread overview]
Message-ID: <428B7C4E.7030901@tls.msk.ru> (raw)
In-Reply-To: <20050518134031.53a3243a@phoebee>

Martin Zwickel wrote:
> On Wed, 18 May 2005 11:35:12 +0100
> Filipe Abrantes <fla@inescporto.pt> bubbled:
> 
>>Hi all,
>>
>>I need to detect when an interface (wired ethernet) has link up/down.
>>Is  there a system signal which is sent when this happens? What is the
>>best  way to this programatically?
> 
> mii-tool?

BTW, it might be a good idea to trigger some hotplug event on
interface up/down... or just send a netlink message. instead of
polling the interface.  The same applies to removable media too
(CD or ZIP drive).

/mjt

  parent reply	other threads:[~2005-05-18 17:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-18 10:35 Detecting link up Filipe Abrantes
2005-05-18 11:40 ` Martin Zwickel
2005-05-18 13:11   ` Vaibhav Nivargi
2005-05-18 13:57     ` Richard B. Johnson
2005-05-18 14:37   ` Max Kellermann
2005-05-18 15:00     ` Oliver Neukum
2005-05-18 15:06     ` Coywolf Qi Hunt
2005-05-18 15:11     ` Richard B. Johnson
2005-05-18 17:33   ` Michael Tokarev [this message]
2005-05-18 18:20 ` Stephen Hemminger
2005-05-18 22:20   ` Baruch Even

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=428B7C4E.7030901@tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox