Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First of all, as for Gingerbread (and Linux kernel 2.6.35) <code>/sys/class/net</code> is not a regular file, it's a directory with a bunch of links to directories to real devices' statistics. It's perfectly readable with any permissions. Use Android terminal emulator (AppMenu -> DevTools -> Terminal Emulator) to see how it looks like. What it looks like. All files below <code>/sys</code> belong to a special kernel subsystem, they're not real files, just interfaces for reading information from kernel. Monitoring means just reading dedicated files that contains counts of transmitted/received/dropped bytes/packets/etc. E.g. In the terminal emulator:</p> <pre><code># ls -l /sys/class/net lrwxrwxrwx root root 2012-03-15 16:49 lo -&gt; ../../devices/virtual/net/lo lrwxrwxrwx root root 2012-03-15 16:49 eth0 -&gt; ../../devices/platform/smc91x.0/net/eth0 lrwxrwxrwx root root 2012-03-15 16:49 tunl0 -&gt; ../../devices/virtual/net/tunl0 lrwxrwxrwx root root 2012-03-15 16:49 gre0 -&gt; ../../devices/virtual/net/gre0 # ls -l /sys/devices/platform/smc91x.0/net/eth0 ### ... A lot of files drwxr-xr-x root root 2012-03-15 16:47 statistics ### ... # ls -l /sys/devices/platform/smc91x.0/net/eth0/statistics -r--r--r-- root root 4096 2012-03-15 17:03 rx_packets -r--r--r-- root root 4096 2012-03-15 17:03 tx_packets -r--r--r-- root root 4096 2012-03-15 17:03 rx_bytes -r--r--r-- root root 4096 2012-03-15 17:03 tx_bytes -r--r--r-- root root 4096 2012-03-15 17:03 rx_errors -r--r--r-- root root 4096 2012-03-15 17:03 tx_errors -r--r--r-- root root 4096 2012-03-15 17:03 rx_dropped -r--r--r-- root root 4096 2012-03-15 17:03 tx_dropped -r--r--r-- root root 4096 2012-03-15 17:03 multicast -r--r--r-- root root 4096 2012-03-15 17:03 collisions -r--r--r-- root root 4096 2012-03-15 17:03 rx_length_errors -r--r--r-- root root 4096 2012-03-15 17:03 rx_over_errors -r--r--r-- root root 4096 2012-03-15 17:03 rx_crc_errors -r--r--r-- root root 4096 2012-03-15 17:03 rx_frame_errors -r--r--r-- root root 4096 2012-03-15 17:03 rx_fifo_errors -r--r--r-- root root 4096 2012-03-15 17:03 rx_missed_errors -r--r--r-- root root 4096 2012-03-15 17:03 tx_aborted_errors -r--r--r-- root root 4096 2012-03-15 17:03 tx_carrier_errors -r--r--r-- root root 4096 2012-03-15 17:03 tx_fifo_errors -r--r--r-- root root 4096 2012-03-15 17:03 tx_heartbeat_errors -r--r--r-- root root 4096 2012-03-15 17:03 tx_window_errors -r--r--r-- root root 4096 2012-03-15 17:03 rx_compressed -r--r--r-- root root 4096 2012-03-15 17:03 tx_compressed # cat /sys/devices/platform/smc91x.0/net/eth0/statistics/rx_bytes 410236 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload