Re: how does kernel detects presence of a particular device

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

 



On Wed, Nov 3, 2010 at 11:22 AM, Gavin Guo <tuffkidtt@xxxxxxxxx> wrote:
>
> That How does probe work depends on particular driver. To be brief,
> driver will does some initial work for devices, like setting up
> register or registering device node on file system. For instance,
> touch panel driver need to register an event node under /dev/input.
> You can read the driver code for specific implementation of probe.
>
Ok I think these are the two places where I should be looking

http://lxr.linux.no/#linux+v2.6.36/drivers/pci/probe.c
http://lxr.linux.no/#linux+v2.6.36/drivers/pci/search.c

The code in probe.c will detect the device.
This is matched up with the driver (assuming it was registered) in search.c.
Inspite of the comments on the above two links I am not able to
understand it as how it is happening.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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