Re: help

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

 



Hi lalith,

On Tue, Nov 16, 2010 at 12:19 AM, laliteshwar yadav <lalit4294@xxxxxxxxx> wrote:
> how probe function works?
>
> how is it getting called?
>
> after registering the device driver who is the first function to call it..

There are 2 things required for the probe function to be called: a
device and a driver.

Normally, the architecture portion of the kernel registers devices for
all of the device that it has.
Then when you register a driver, it will detect if a device with a
matching name has been registered. If it finds a match, it will call
the probe routine.

I normally work with linux in an embedded environment (ARM and MIPS),
not programming for linux under x86, so its possible that things
happen a little differently in that environment.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
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