2010/11/3 अनुज <[email protected]>:
>
> Simply, whenever either a device or driver is registered with the bus,
> then probe function of matching driver is called by the bus subsystem.
>
> Refer : http://lxr.linux.no/#linux+v2.6.36/Documentation/PCI/pci.txt
>
>       probe               This probing function gets called (during execution
>  88                        of pci_register_driver() for already existing
>  89                        devices or later if a new device gets inserted) for
>  90                        all PCI devices which match the ID table and are 
> not
>  91                        "owned" by the other drivers yet. This function 
> gets
>  92                        passed a "struct pci_dev *" for each device whose
>  93                        entry in the ID table matches the device. The probe
>  94                        function returns zero when the driver chooses to
>  95                        take "ownership" of the device or an error code
>  96                        (negative number) otherwise.
>  97                        The probe function always gets called from process
>  98                        context, so it can sleep.
>
That links talks about WHAT is done.
"As pci_register_driver() looks for existing devices or which match
the ID table and not owned by id table."

I am looking for HOW it is done.
I am not in a position to understand the source code right now.So I asked list.
I had read that doc before posting here.

Reply via email to