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

Re: PCI Question



On Wed, Oct 08, 2003 at 11:22:57AM -0700, Usman S. Ansari wrote:
> Thanks for you reply.
> 
> For people reading this latter, actual calls are
> 
> pci_find_device()?
> pci_find_subsys()?

I was talking about 2.4 series kernel, sorry for confusion.

Greg KH" <greg@kroah.com> wrote:
No, not true at all.  Use the calls I said to use are:
	pci_get_device()
	pci_get_subsys()
they are the only safe way to do this (otherwise the pci device
structure might disappear at any moment without your driver realizing
it.)  These functions are in the 2.6 kernel.  The pci_find_device() and
pci_find_subsys() functions will disappear at any time in the future
(basically whenever I get around to it...)

Now if you are talking a 2.4 kernel, all bets are off, but you didn't
specify which kenrel you are talking about, so I assumed you would be
targeting the most recent one, as that's the place for new drivers :)

thanks,

greg k-h

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/