lkml.org 
[lkml]   [2011]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Network link detection
On 03/03/2011 01:30 PM, Nico Schümann wrote:
> Dear kernel developers,
>
> currently I'm looking for a way to find out whether a network link went
> down or up. Of course there is mii-tool, which can watch devices, too.
>
> Unfortunately, I was not able to find out a way to be notified about
> link status changes asynchronously. Is there a way? I'm looking for
> something like "inotify for link states".

You might look at whether you could write a kernel module to register
for NETDEV_CHANGE notifications and pass that back to userspace.

Chris

--
Chris Friesen
Software Developer
GENBAND
chris.friesen@genband.com
www.genband.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2011-03-03 22:57    [W:0.054 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site