when is probe function of GPIO based MDIO bitbang driver called -


following definition of probe function in standard gpio based mdio bitbang driver

static int __devinit mdio_ofgpio_probe(struct of_device *ofdev,const struct of_device_id* match) 

i can't figure out purpose of __devinit in above code.
secondly when probe function called driver? may when driver loaded itself. it's not part of driver init functions. correct me if wrong?

there lists maintained @ bus driver structure available devices on bus , available drivers in system can support devices on bus.

now when insert module in kernel. init_module called basic initialization w.r.t driver, when insert device, match function part of bus structure called check if list of drivers has driver supports device. upon successful match probe of driver called.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -