Linus Torvalds <torvalds@transmeta.com> writes:
> On Mon, 10 Jun 2002, Helge Hafting wrote:
> >
> > Not much, but
> > ls /dev/net
> > eth0 eth1 eth2 ippp0
> > would be a convenient way to see what net devices exists.
> > This already works for other devices, when using devfs.
>
> You might as well do
>
> cat /proc/net/dev
>
> instead.
>
> Which works with existing kernels, going back to whatever..
Gap, puke.
Sorry I have built kernels where space was tight and I only built in
/proc so I could read /proc/net/dev. And since with /proc everything
is all in one basket it is very hard to turn off unneeded features.
/proc might be nice to user space but as it is implemented it is
nasty to work with.
So a netdevfs or some solution that factors better would really
be nice.
Eric
-
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/
This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:22 EST