* number of eth0 device @ 2005-10-19 10:31 Karel Kulhavy 2005-10-19 10:42 ` Erik Mouw 0 siblings, 1 reply; 5+ messages in thread From: Karel Kulhavy @ 2005-10-19 10:31 UTC (permalink / raw) To: linux-kernel Hello 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? CL< ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: number of eth0 device 2005-10-19 10:31 number of eth0 device Karel Kulhavy @ 2005-10-19 10:42 ` Erik Mouw 2005-10-19 11:23 ` Mathieu Segaud 0 siblings, 1 reply; 5+ messages in thread From: Erik Mouw @ 2005-10-19 10:42 UTC (permalink / raw) To: Karel Kulhavy; +Cc: linux-kernel 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. Erik -- +-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 -- | Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: number of eth0 device 2005-10-19 10:42 ` Erik Mouw @ 2005-10-19 11:23 ` Mathieu Segaud 2005-10-19 11:36 ` Coywolf Qi Hunt 2005-10-19 19:34 ` Lee Revell 0 siblings, 2 replies; 5+ messages in thread From: Mathieu Segaud @ 2005-10-19 11:23 UTC (permalink / raw) To: Erik Mouw; +Cc: Karel Kulhavy, linux-kernel 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" -- Mathieu ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: number of eth0 device 2005-10-19 11:23 ` Mathieu Segaud @ 2005-10-19 11:36 ` Coywolf Qi Hunt 2005-10-19 19:34 ` Lee Revell 1 sibling, 0 replies; 5+ messages in thread From: Coywolf Qi Hunt @ 2005-10-19 11:36 UTC (permalink / raw) To: Mathieu Segaud; +Cc: Erik Mouw, Karel Kulhavy, linux-kernel 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 - ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: number of eth0 device 2005-10-19 11:23 ` Mathieu Segaud 2005-10-19 11:36 ` Coywolf Qi Hunt @ 2005-10-19 19:34 ` Lee Revell 1 sibling, 0 replies; 5+ messages in thread From: Lee Revell @ 2005-10-19 19:34 UTC (permalink / raw) To: Mathieu Segaud; +Cc: Erik Mouw, Karel Kulhavy, linux-kernel On Wed, 2005-10-19 at 13:23 +0200, Mathieu Segaud wrote: > 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" > Ditto sound cards, which is why ALSA abandoned the OSS "everything is a file" paradigm for sound cards. Read/write etc. don't take into account the inherent realtime constraints in streaming audio to/from a device. Lee ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-10-19 20:04 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-10-19 10:31 number of eth0 device Karel Kulhavy 2005-10-19 10:42 ` Erik Mouw 2005-10-19 11:23 ` Mathieu Segaud 2005-10-19 11:36 ` Coywolf Qi Hunt 2005-10-19 19:34 ` Lee Revell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox