Re: renaming kernel devices [was: VIA EPIA EK: strange eth dev numbering]

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <david@...>
Cc: Ondrej Zajicek <santiago@...>, Jan Engelhardt <jengelh@...>, Michael Tokarev <mjt@...>, Herbert Rosmanith <kernel@...>, <linux-kernel@...>
Date: Friday, August 3, 2007 - 11:12 am

david@lang.hm wrote:

Two notes:

  1. Udev doesn't restrict you to any one naming scheme.  If you want
something else than a MAC based scheme, e.g. a PCI topology based
scheme, udev most certainly can do that for you.  But the kernel can't.

  2. Consider udev a kernel extension in userspace, with the benefit of
configurability and scriptability, features that kernel extensions in
kernelspace can't offer.  Of course this gain of features doesn't come
at zero cost:  You need a minimal userspace environment at boot time.

Quoting myself from http://marc.info/?l=linux-scsi&m=118613786003162:

There is a variety of possible naming schemes:

  - Naming by order of discovery.
  - Naming by vendor/model name strings.
  - Naming by universally unique identifier.
  - Naming by topology.
  - ...

Only the simplest of these schemes (naming by order of discovery) is
hardwired into the kernel portion of the Linux OS.  The other naming
schemes are (or can be) implemented in the userland portion of the Linux OS.

There is only the most primitive naming scheme implemented in the kernel
because naming policy, like most other kinds of policy, is better left
to userland.  The kernel is a too restricted framework to implement such
things.  The kernel lacks runtime-configuration files, scripting
interfaces, et cetera.
-- 
Stefan Richter
-=====-=-=== =--- ---==
http://arcgraph.de/sr/
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
VIA EPIA EK: strange eth dev numbering, Herbert Rosmanith, (Thu Aug 2, 6:20 am)
Re: VIA EPIA EK: strange eth dev numbering, Jan Engelhardt, (Thu Aug 2, 6:44 am)
Re: VIA EPIA EK: strange eth dev numbering, Michael Tokarev, (Thu Aug 2, 6:26 am)
Re: VIA EPIA EK: strange eth dev numbering, Herbert Rosmanith, (Thu Aug 2, 6:42 am)
Re: VIA EPIA EK: strange eth dev numbering, Jan Engelhardt, (Thu Aug 2, 6:49 am)
Re: VIA EPIA EK: strange eth dev numbering, Herbert Rosmanith, (Thu Aug 2, 7:12 am)
Re: VIA EPIA EK: strange eth dev numbering, Herbert Rosmanith, (Thu Aug 2, 6:56 am)
Re: VIA EPIA EK: strange eth dev numbering, Jan Engelhardt, (Thu Aug 2, 7:47 am)
Re: VIA EPIA EK: strange eth dev numbering, Michael Tokarev, (Thu Aug 2, 9:07 am)
Re: VIA EPIA EK: strange eth dev numbering, Jan Engelhardt, (Thu Aug 2, 9:38 am)
Re: VIA EPIA EK: strange eth dev numbering, Jan Engelhardt, (Thu Aug 2, 2:37 pm)
Re: VIA EPIA EK: strange eth dev numbering, Kay Sievers, (Thu Aug 2, 6:00 pm)
Re: VIA EPIA EK: strange eth dev numbering, Jan Engelhardt, (Thu Aug 2, 6:39 pm)
Re: VIA EPIA EK: strange eth dev numbering, Kay Sievers, (Thu Aug 2, 6:49 pm)
Re: VIA EPIA EK: strange eth dev numbering, Jan Engelhardt, (Fri Aug 3, 3:46 am)
Re: VIA EPIA EK: strange eth dev numbering, Herbert Rosmanith, (Thu Aug 2, 8:00 am)
Re: VIA EPIA EK: strange eth dev numbering, Jan Engelhardt, (Thu Aug 2, 8:06 am)
Re: renaming kernel devices [was: VIA EPIA EK: strange eth d..., Stefan Richter, (Fri Aug 3, 11:12 am)