Hi lalith,

On Tue, Nov 16, 2010 at 12:19 AM, laliteshwar yadav <[email protected]> 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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to