All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Nizette <bn@niasdigital.com>
To: joakim.tjernlund@transmode.se
Cc: Paul Mundt <lethal@linux-sh.org>,
	"Hans J. Koch" <hjk@linutronix.de>,
	gregkh@suse.de, Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: UIO device name
Date: Thu, 25 Sep 2008 20:48:49 +1000	[thread overview]
Message-ID: <1222339729.3938.15.camel@moss.renham> (raw)
In-Reply-To: <1222337151.12624.293.camel@gentoo-jocke.transmode.se>


On Thu, 2008-09-25 at 12:05 +0200, Joakim Tjernlund wrote:
> On Thu, 2008-09-25 at 08:57 +1000, Ben Nizette wrote:
> > 
> > My software just walks /sys/class/uio/uioX/name, finds the one which
> > matches then opens the corresponding device.  No scripts needed, no
> > in-kernel hackery or policy making, just the interface used as the maker
> > intended.  What's your problem with this approach?
> 
> My problem is this, uio is a generic container for any user space device
> and by itself it doesn't mean much. You put some protocol driver on top
> of uio, such as uio_smx, to make it mean something. 
> 
> Comparing uio with hdX is wrong as hdX means something, it is a block
> device for a disk. 
> A better comparison would be if all kernel devices were named kio%d and
> you had to scan /sys to find the name hdX.

UIO drivers certainly aren't first class citizens like kernel mode
drivers.  They just aren't.

> 
> Look at the spi subsystem, the protocol drivers name them self.

UIO is an interface type, not a bus type.  UIO isn't a subsystem as
such, it's a user interface.  If the interface is consistent (even if
the backing device is different) I don't see the problem with consistent
naming.

Anyway, I don't really see the point arguing here - the interface is
what it is, it does everything it needs to to allow you to identify the
device nodes.  The kernel boys have spent a lot of effort over time
letting userspace identify and name device nodes and I don't really see
the difference here :-)

	--Ben.



  reply	other threads:[~2008-09-25 10:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24  9:21 UIO device name Joakim Tjernlund
2008-09-24  9:35 ` Paul Mundt
2008-09-24  9:57   ` Joakim Tjernlund
2008-09-24 10:14     ` Paul Mundt
2008-09-24 10:22     ` Hans J. Koch
2008-09-24 11:33       ` Joakim Tjernlund
2008-09-24 11:47         ` Paul Mundt
2008-09-24 12:38           ` Joakim Tjernlund
2008-09-24 22:57             ` Ben Nizette
2008-09-25 10:05               ` Joakim Tjernlund
2008-09-25 10:48                 ` Ben Nizette [this message]
2008-09-25 11:41                   ` Joakim Tjernlund
2008-09-25 11:53                     ` Paul Mundt
2008-09-25 12:36                       ` Joakim Tjernlund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1222339729.3938.15.camel@moss.renham \
    --to=bn@niasdigital.com \
    --cc=gregkh@suse.de \
    --cc=hjk@linutronix.de \
    --cc=joakim.tjernlund@transmode.se \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.