Re: PCI Question

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

 



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()?

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
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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