* [KJ] updating obsolete pci_find_* routines
@ 2007-01-28 0:27 Robert P. J. Day
2007-01-28 1:40 ` Nishanth Aravamudan
2007-01-28 7:17 ` Robert P. J. Day
0 siblings, 2 replies; 3+ messages in thread
From: Robert P. J. Day @ 2007-01-28 0:27 UTC (permalink / raw)
To: kernel-janitors
From Documentation/pci.txt:
9. Obsolete functions
~~~~~~~~~~~~~~~~~~~~~
There are several functions which you might come across when trying to
port an old driver to the new PCI interface. They are no longer
present in the kernel as they aren't compatible with hotplug or PCI
domains or having sane locking.
pci_find_device() Superseded by pci_get_device()
pci_find_subsys() Superseded by pci_get_subsys()
pci_find_slot() Superseded by pci_get_slot()
so these three changes would be simple text substitutions of the
routine names, would they? the args have the same semantics and
everything? just curious.
rday
--
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
====================================
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] updating obsolete pci_find_* routines
2007-01-28 0:27 [KJ] updating obsolete pci_find_* routines Robert P. J. Day
@ 2007-01-28 1:40 ` Nishanth Aravamudan
2007-01-28 7:17 ` Robert P. J. Day
1 sibling, 0 replies; 3+ messages in thread
From: Nishanth Aravamudan @ 2007-01-28 1:40 UTC (permalink / raw)
To: kernel-janitors
On 27.01.2007 [19:27:56 -0500], Robert P. J. Day wrote:
>
> From Documentation/pci.txt:
>
> 9. Obsolete functions
> ~~~~~~~~~~~~~~~~~~~~~
>
> There are several functions which you might come across when trying to
> port an old driver to the new PCI interface. They are no longer
> present in the kernel as they aren't compatible with hotplug or PCI
> domains or having sane locking.
>
> pci_find_device() Superseded by pci_get_device()
> pci_find_subsys() Superseded by pci_get_subsys()
> pci_find_slot() Superseded by pci_get_slot()
>
> so these three changes would be simple text substitutions of the
> routine names, would they? the args have the same semantics and
> everything? just curious.
No, see the kernel-janitor archives.
Among other things, many drivers that still use pci_find_device()
probably should be reworked to use struct pci_driver semantics.
And pci_get_device() requires a pci_dev_put() when the driver is done
with the struct pci_dev.
Thanks,
Nish
--
Nishanth Aravamudan <nacc@us.ibm.com>
IBM Linux Technology Center
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] updating obsolete pci_find_* routines
2007-01-28 0:27 [KJ] updating obsolete pci_find_* routines Robert P. J. Day
2007-01-28 1:40 ` Nishanth Aravamudan
@ 2007-01-28 7:17 ` Robert P. J. Day
1 sibling, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2007-01-28 7:17 UTC (permalink / raw)
To: kernel-janitors
On Sat, 27 Jan 2007, Nishanth Aravamudan wrote:
> On 27.01.2007 [19:27:56 -0500], Robert P. J. Day wrote:
> >
> > From Documentation/pci.txt:
> >
> > 9. Obsolete functions
> > ~~~~~~~~~~~~~~~~~~~~~
> >
> > There are several functions which you might come across when trying to
> > port an old driver to the new PCI interface. They are no longer
> > present in the kernel as they aren't compatible with hotplug or PCI
> > domains or having sane locking.
> >
> > pci_find_device() Superseded by pci_get_device()
> > pci_find_subsys() Superseded by pci_get_subsys()
> > pci_find_slot() Superseded by pci_get_slot()
> >
> > so these three changes would be simple text substitutions of the
> > routine names, would they? the args have the same semantics and
> > everything? just curious.
>
> No, see the kernel-janitor archives.
>
> Among other things, many drivers that still use pci_find_device()
> probably should be reworked to use struct pci_driver semantics.
>
> And pci_get_device() requires a pci_dev_put() when the driver is done
> with the struct pci_dev.
yes, i read more closely and noticed that shortly after posting.
thanks.
rday
--
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
====================================
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-28 7:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-28 0:27 [KJ] updating obsolete pci_find_* routines Robert P. J. Day
2007-01-28 1:40 ` Nishanth Aravamudan
2007-01-28 7:17 ` Robert P. J. Day
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.