public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Juergen Lambrecht <J.Lambrecht@televic.com>
To: Emmanuel Coullien <coullien.emmanuel@gmail.com>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Ethernet Link status question
Date: Tue, 25 Sep 2007 13:45:00 -0000	[thread overview]
Message-ID: <46F910E9.4080100@televic.com> (raw)
In-Reply-To: <3fae21000709250637y28a6d067gf0dec5c844ee2f7d@mail.gmail.com>

If your network driver supports the ETH_DRV_GET_IF_STATS option of the 
control function, then you can poll the control function. See 
cyg/io/eth/eth_drv_stats.h for the struct ether_drv_stats.operational.

See http://ecos.sourceware.org/docs-latest/ref/io-eth-drv-api-funcs.html.

Emmanuel Coullien wrote:
> Hi,
>
> I try to know what is the Ethernet link status from the application level.
> I just would like to write a function like this :     int
> eth_link_state ("eth0");      which return 1 if the Ethernet is up.
> I want to respect the different ecos layer to do this but I didn't
> find any answer in the ecos-discuss history.
> Do someone have an idea how to do this properly ?
>
> Thank you for your response.
>
> Emmanuel Coullien
>
>   



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

      reply	other threads:[~2007-09-25 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25 13:37 Emmanuel Coullien
2007-09-25 13:45 ` Juergen Lambrecht [this message]

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=46F910E9.4080100@televic.com \
    --to=j.lambrecht@televic.com \
    --cc=coullien.emmanuel@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).