最終更新:2014-05-28 (水) 07:43:12 (3593d)
platform_driver_probe
Top / platform_driver_probe
register driver for non-hotpluggable device
- int platform_driver_probe (platform_driver *drv, int (*probe)(platform_device *)
引数
- probe用のコールバックを引数に渡す
- platform_driver.probe = probe;
- r8a66597_probe
コールバック関数の例
呼び出し
- drv->probe = probe;
- platform_driver_register(drv)
- drv->probe = NULL;
- drv->driver.probe = platform_drv_probe_fail?;
呼び出し元
- module_platform_driver_probe
- platform_create_bundle?
- hidg_init
メモ
- Use this instead of platform_driver_register() when you know the device is not hotpluggable and has already been registered, and you want to remove its run-once probe() infrastructure from memory after the driver has bound to the device.
メモ2
- When the hardware is not hot pluggable and needs detection during the booting of the kernel, you must use the platform_driver_probe method. This method is ideal for platform drivers, which are for controllers integrated with the platform hardware. This method works similarly to the platform_driver_register, except hardware is not probed when another device is connected after the kernel bootup.