From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: dri and udev
Date: Tue, 30 Dec 2003 00:36:34 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-107274463612434@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-107251004911161@msgid-missing>
On Sat, Dec 27, 2003 at 12:57:38PM -0800, Jon Smirl wrote:
>
> while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
If you _have_ to do this, please use pci_get_device() instead. It's
much safer to use.
> My personal opinion on this is that it is insane for two device drivers to be
> trying to share the same same piece of hardware - it's multitasking for device
> drivers. I also don't think udev/sysfs are set up to deal with two device
> drivers claiming the same piece of hardware.
The driver model is not set up to do that. And it is correct, you
should claim the device, like the fbdev people do. If users want one or
the other, that's fine. Bad things might happen if two drivers talk to
the same hardware at the same time.
thanks,
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
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
prev parent reply other threads:[~2003-12-30 0:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-27 7:24 dri and udev Jon Smirl
2003-12-27 16:36 ` Kay Sievers
2003-12-27 17:08 ` Jon Smirl
2003-12-27 19:13 ` Greg KH
2003-12-27 19:13 ` Greg KH
2003-12-27 19:13 ` Greg KH
2003-12-27 19:14 ` Greg KH
2003-12-27 20:57 ` Jon Smirl
2003-12-27 20:57 ` Jon Smirl
2003-12-28 1:23 ` Marco d'Itri
2003-12-28 1:23 ` Marco d'Itri
2003-12-30 0:36 ` Greg KH [this message]
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=marc-linux-hotplug-107274463612434@msgid-missing \
--to=greg@kroah.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).