linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Stekloff <dsteklof@us.ibm.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev and the kernel's idea of a device
Date: Tue, 06 Apr 2004 21:43:09 +0000	[thread overview]
Message-ID: <200404061443.09474.dsteklof@us.ibm.com> (raw)
In-Reply-To: <20040406192223.GA4853@nostromo.devel.redhat.com>

On Tuesday 06 April 2004 02:06 pm, Greg KH wrote:
> On Tue, Apr 06, 2004 at 04:49:24PM -0400, Bill Nottingham wrote:
> > > > > As it is very simple
> > > > > to translate from the kernel device name to the real /dev name at
> > > > > any point in time using udevinfo, why is that not sufficient?
> > > >
> > > > Requires integrating udevinfo into various random userland apps...
> > > > it's certainly doable, but it just doesn't seem very clean.
> > >
> > > I agree, but what random userland apps are you talking about?
> >
> > Off the top of my head, iostat, cdrom capability checkers, fbset
> > and friends, etc. But, in the long run, see below.
>
> But those apps want to know the /dev node, right?  They don't get errors
> back from the kernel with the kernel device name (well, I don't know
> what iostat uses, but I think the later version use sysfs...).  Things
> like fbset want to know where the fb device is at in /dev, not the other
> way around.
>
> Or am I confused too?
>
> > > Can you think of a cleaner suggestion?
> >
> > Drill HAL throughout the entire OS. :)
>
> Yeah, that's the "correct" solution, but until then I imagine you need
> to get real work done :)


Our error log analysis application takes the information prefixed to an error 
message by dev_printk() macros and uses it as a key to query specific device 
information. We are using Martin Schwenke's lsvpd package to get all the 
Vital Product Data (VPD) about a device. His package currently builds a db of 
system devices, pulling information from various places like sysfs and 
sg3_utils, and provides commands for retrieving that information. 

We are working with Martin to increase the usability of lsvpd and its device 
database. Martin plans to hook lsvpd up to hotplug events for adding and 
removing devices. He also plans to store device name information for those 
devices named by udev. Finally, we plan to help him create an API for 
querying device information so we have *one* place to go for getting a 
device's vital data. 

I had originally thought an API would be needed for udev, but it can be done 
outside udev. Udev is for naming certain devices. What we need is an API for 
retrieving information from *all* system devices. 

For more information:

Error Log Analysis: http://evlog.sourceforge.net/ela.html

lsvpd: http://linux-diag.sourceforge.net/Lsvpd.html

Thanks,

Dan


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÌk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2004-04-06 21:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06 19:22 udev and the kernel's idea of a device Bill Nottingham
2004-04-06 19:59 ` Greg KH
2004-04-06 20:10 ` Bill Nottingham
2004-04-06 20:30 ` Greg KH
2004-04-06 20:49 ` Bill Nottingham
2004-04-06 21:06 ` Greg KH
2004-04-06 21:14 ` Bill Nottingham
2004-04-06 21:43 ` Daniel Stekloff [this message]
2004-04-08 21:03 ` Greg KH

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=200404061443.09474.dsteklof@us.ibm.com \
    --to=dsteklof@us.ibm.com \
    --cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).