[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Querying network devices carrier status



Look at the code for mii-tool which comes with net-tools. It would work 
as long as the network device driver in question supports reading MII 
registers using ioctl. Most tend to do this.

Amit

Jonathan Khoo wrote:
> Hi guys,
> 
> How can I probe all the link status of all network devices from the
> userland?
> I know that there is a netif_carrier_ok(..) for the kernel, but how can
> I make use of this from the userland without creating an extra kernel
> module to accept ioctl from the userspace?
> 
> Many thanks for any advices!
> 
> Cheers,
> Jon.
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> IRC Channel:   irc.openprojects.net / #kernelnewbies
> Web Page:      http://www.kernelnewbies.org/
> 
> 
> 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/