linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Documentation/pci.txt inconsistency
@ 2004-11-17 12:34 Rolf Eike Beer
  2004-11-17 22:03 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Rolf Eike Beer @ 2004-11-17 12:34 UTC (permalink / raw)
  To: Linux Kernel Mailing List

The examples in section 2 of Documentation/pci.txt use pci_get_*. Some lines
later there is this funny little paragraph:

> Note that these functions are not hotplug-safe.  Their hotplug-safe
> replacements are pci_get_device(), pci_get_class() and pci_get_subsys().
> They increment the reference count on the pci_dev that they return.
> You must eventually (possibly at module unload) decrement the reference
> count on these devices by calling pci_dev_put().

How about this:

These functions are hotplug-safe. They increment the reference count on the
pci_dev that they return. You must eventually (possibly at module unload)
decrement the reference count on these devices by calling pci_dev_put().

Eike

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-19 18:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-17 12:34 Documentation/pci.txt inconsistency Rolf Eike Beer
2004-11-17 22:03 ` Greg KH
2004-11-18  9:45   ` Rolf Eike Beer
2004-11-19 18:30     ` Greg KH

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).