Re: Replacement for pci_for_each_dev()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg KH (greg@xxxxxxxxx) wrote:
> On Fri, Aug 20, 2004 at 09:00:06AM +0200, Christophe Lucas wrote:
> > Timur Tabi (timur.tabi@xxxxxxxxxxx) wrote:
> > > I have a driver that uses the macro pci_for_each_dev, which no longer 
> > > exists in the 2.6 kernel.  What do I use in 2.6?
> > 
> > _Please _ read docs ;-) linux-2.6.x/Documentation/pci.txt:
> > 
> > [...]
> > pci_for_each_dev()              Superseded by pci_find_device()
> 
> No!  Use pci_get_device(), pci_find_device() is about to be deleted.

Oh sorry :-(
I have only read, pasted pci.txt ;-)
I am really sorry. I don't have found the right information on:
 - http://lwn.net/Articles/22197/
But only:
 - http://cvs.sourceforge.net/viewcvs.py/linuxsh/linux/ChangeLog?rev=1.188
 - linux-2.6.x/Documentation/pci.txt

The next time I will search more :
 - http://lxr.linux.no/source/drivers/pci/search.c?v=2.6.5#L198

I apologize.

> 
> > pci_for_each_dev_reverse()      Superseded by pci_find_device_reverse()
> 
> Again, no!  You should never need this function, there is only 1 user of
> it, and it's about to be fixed...

Have a good day.
--
Amicalement/Regards
-----------------------------------------------------------------
Christophe Lucas <c.lucas@xxxxxxxxxxx>         developer/sysadmin
Registered User #271267                       gpg dsa: 0x1E87C874
RotomaLUG member                     http://odie.mcom.fr/~clucas/
-----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux