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

Re: pci_device_probe() in pci_driver.c



Hi,


On Thu, Oct 16, 2008 at 11:40 AM, J. H. Kim <frog1120@xxxxxxxxx> wrote:
> Hi, everyone
>
> Reading kernel source code util pci_init(),  I  did not find which routine
> calls pci_device_probe().
> If anyone knows about that, please let know which routine does call
> pci_device_probe() function in pci_driver.c and when is the function called?

In function: bus_register(&pci_bus_type); is pci_bus_type structure
contain also pointer to pci_device_probe function.
I think you only add callback to probe function and rest is done by kernel ;).


>
> Thanks in advance.
>
>
>
>
>

Thanks.

Marek

-- 
as simple as primitive as possible
----------------------------------------------
Marek Beliško
Ruská Nová Ves 219
08005 Prešov
Slovakia
http://binaural.ifastnet.com
N‹§²æìr¸›yúèšØb²X¬¶ǧu©ޙ¨¥Â+aº{.nÇ+‰·¤z¹ޖw°n'¬¶‡œj»b²yeŠ{±¢¸•æ¬z·švØ^¶m§ÿäz¹ޖw°n'¬¢¸?