public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adam Belay <ambx1@netscape.net>
To: mochel@osdl.org
Cc: Oliver Neukum <Oliver.Neukum@lrz.uni-muenchen.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] integrate driverfs and devfs (2.5.28)
Date: Tue, 30 Jul 2002 14:02:46 +0000	[thread overview]
Message-ID: <3D469C86.3010305@netscape.net> (raw)
In-Reply-To: Pine.LNX.4.44.0207300902280.22697-100000@cherise.pdx.osdl.net

The problem is that a device without a mapping to a driver is a valid
> state.

Ok here's a new less devfs dependent idea.  Its sole goal is to 
acomplish the above.  Why not add a list to device like I did before 
only instead of using devfs handles to discover major and minor numbers 
I can store the major and minor numbers directly.  I could even use 
kdev_t.  This way it is not dependent on devfs and does not enforce any 
of its policies.  Then I'll create a quick interface for driverfs as 
well as a simple register and unregister function.  I'll name it dev 
like before and it can display information in the following format: 
 MAJOR, MINOR.  It will print one line per dev.  Finally I can use one 
of devfs's find functions to generate the path although I may just 
forget devfs entirely.  This interface is necessary because user level 
programs can determine which driverfs entries correspond to which 
entries in their dev directory.  I think this will be useful for hotplug 
as well as some of my own projects.  If you support this I'll get to 
work on a patch.  Also I had a driver model related question.  Should a 
driver be able to belong to more than one bus?  Also are you going to 
create an interface that exports drivers directly instead of only 
through bus and device class?
Thanks,
Adam


  reply	other threads:[~2002-07-30 17:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-28 21:03 [PATCH] integrate driverfs and devfs (2.5.28) Adam Belay
2002-07-29 13:47 ` Adam Belay
2002-07-29 19:33 ` Patrick Mochel
2002-07-29 16:47   ` Adam Belay
2002-07-29 22:21     ` Patrick Mochel
2002-07-29 23:25       ` Oliver Neukum
2002-07-30 16:32         ` Patrick Mochel
2002-07-30 14:02           ` Adam Belay [this message]
2002-08-05  6:26         ` Rob Landley
2002-08-05 23:19           ` Greg KH
2002-08-05 23:51             ` Policy vs API (was Re: [PATCH] integrate driverfs and devfs (2.5.28)) Rob Landley
2002-08-06 16:34               ` Greg KH
2002-08-06 17:43               ` Patrick Mochel

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=3D469C86.3010305@netscape.net \
    --to=ambx1@netscape.net \
    --cc=Oliver.Neukum@lrz.uni-muenchen.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mochel@osdl.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