lkml.org 
[lkml]   [2005]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: number of eth0 device
    On Wed, Oct 19, 2005 at 01:23:48PM +0200, Mathieu Segaud wrote:
    > Erik Mouw <erik@harddisk-recovery.com> disait dernièrement que :
    >
    > > On Wed, Oct 19, 2005 at 12:31:35PM +0200, Karel Kulhavy wrote:
    > >> I am looking into Documentation/devices.txt in 2.4.25 and eth0 is not listed
    > >> there. If I grep "eth", I get only
    > >>
    > >> 38 char Myricom PCI Myrinet board
    > >> [...]
    > >> "This device is used for status query, board control and "user level
    > >> packet I/O." This board is also accessible as a standard networking
    > >> "eth" device. "
    > >>
    > >> and then
    > >>
    > >> /dev/pethr0
    > >>
    > >> Is eth0 some kind of special device that doesn't have any number
    > >> assigned?
    > >
    > > Yes, there's no such thing as /dev/eth0, network interfaces have their
    > > own namespace. Linux uses the defacto standard BSD socket interface for
    > > networking, so blame the BSD people for violating the "everything is a
    > > file" rule.
    >
    > well, the way NIC's behave kind of forbids this
    > taken from Linux Device Drivers, 3rd Edition, page 497
    > "The normal file operations (read, write, and so on) do not make sense
    > when applied to network interfaces, so it is not possible to apply the
    > Unix ''everything is a file'' approach to them"

    I think there're other nodes in /dev on which normal file
    operations do not make sense either.
    --
    Coywolf
    -
    -
    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/

    \
     
     \ /
      Last update: 2005-10-19 13:39    [W:0.030 / U:37.956 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site