9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Rocky Hotas <rockyhotas@firemail.cc>
To: 9front@9front.org
Cc: adventuresin9@gmail.com
Subject: Re: Re: [9front] Fields in /net/ether0/ifstats
Date: Fri, 3 May 2024 11:30:28 +0200	[thread overview]
Message-ID: <f6c277xptvbqaxpktx2mmwehaiku3yn2ym2mtxz6cl5rp5kowg@pcdnazceo6id> (raw)
In-Reply-To: <CAPfmpJBwShZ2JZ-kmuMTwPL184b5UQxA=j_whMjnc+U2grMJcg@mail.gmail.com>

On mag 02 13:58, adventures in9 wrote:
> The /net/etherN/ifstats file is particular to each driver.  So to
> understand it you would have to read the code for that particular
> driver.

Ok! I found several files in the sourcecode.

In 9front/sys/src/9/pc:

  ether2000.c
  ether2114x.c
  ether589.c
  ...

Then, 9front/sys/src/9/port/ethermii.c.

Probably ethermii.c is common to them, while those in
9front/sys/src/9/pc are the actual drivers. If so, how can I determine
which is the driver currently in use?

> The exception is for wifi, where it is used for scans and what AP you
> are connected to.

In this case it is a cable (Ethernet) connection.

Thank you!

Rocky

  reply	other threads:[~2024-05-03  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-02 20:41 Rocky Hotas
2024-05-02 20:58 ` adventures in9
2024-05-03  9:30   ` Rocky Hotas [this message]
2024-05-03  9:55     ` Re: " Rocky Hotas

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=f6c277xptvbqaxpktx2mmwehaiku3yn2ym2mtxz6cl5rp5kowg@pcdnazceo6id \
    --to=rockyhotas@firemail.cc \
    --cc=9front@9front.org \
    --cc=adventuresin9@gmail.com \
    /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 NNTP newsgroup(s).