最終更新:2014-06-04 (水) 03:08:57 (3586d)
MODULE_DEVICE_TABLE
Top / MODULE_DEVICE_TABLE
#define MODULE_DEVICE_TABLE(type, name) MODULE_GENERIC_TABLE(type##_device, name)
例
- MODULE_DEVICE_TABLE(hid, apple_devices?);
- MODULE_GENERIC_TABLE(hid_device, apple_devices?)
- extern const struct hid_device_id __mod_hid_device_table? __attribute__ ( (unused, alias(__stringify(apple_devices?) ) ) )
メモ
- The MODULE_DEVICE_TABLE macro allows depmod to extract at compile the relation between device identifiers and drivers, so that drivers can be loaded automatically by udev