From: Paul Mundt <lethal@linux-sh.org>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: hjk@linutronix.de, gregkh@suse.de,
Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: UIO device name
Date: Wed, 24 Sep 2008 18:35:52 +0900 [thread overview]
Message-ID: <20080924093551.GB7591@linux-sh.org> (raw)
In-Reply-To: <1222248093.12624.188.camel@gentoo-jocke.transmode.se>
On Wed, Sep 24, 2008 at 11:21:33AM +0200, Joakim Tjernlund wrote:
> As far as I can see there isn't a way to name the /dev/uio%d device file
> to something more useful, is that so?
> I would like to name the device file from within the kernel so I can
> find the correct device from userspace.
> The very least is to control the minor(%d) number.
>
You have a couple of options for this:
- the 'name' sysfs entry for each of the uio devices, which
corresponds to the uio device name.
- extracting the relevant data from things like 'lsuio'.
- hooking in the pretty mame through udev to create an alias.
All of the information you need is available for userspace to play with,
and you want to be relying on the device name itself, not the minor
number (where you have no gaurantee of the ordering).
Documentation/DocBook/uio-howto.tmpl also has some more information on
what sort of information is exposed.
next prev parent reply other threads:[~2008-09-24 9:37 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 [this message]
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
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=20080924093551.GB7591@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=gregkh@suse.de \
--cc=hjk@linutronix.de \
--cc=joakim.tjernlund@transmode.se \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox