Hi,<div><br></div><div>I am seeing probe function pointer and know the procedure to register of it for a specific device driver. However, I wonder when it is actually called?</div><div><br></div><div>For example, for platform drivers, there is a structure like this:</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><pre><span class="l"></span>struct platform_driver {
int (*probe)(struct platform_device *);
int (*remove)(struct platform_device *);
void (*shutdown)(struct platform_device *);
int (*suspend)(struct platform_device *, pm_message_t state);
int (*suspend_late)(struct platform_device *, pm_message_t state);
int (*resume_early)(struct platform_device *);
int (*resume)(struct platform_device *);
struct device_driver driver;
};
</pre><br>Then, it is registered by </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><pre>int platform_driver_register(struct platform_driver *drv);<br></pre>But, I wonder when actually, those functions (especially, probe) are called. Could you guide me about it, please?<div>
<br></div><div>Thanks,</div><div><br></div><div>-J.</div>