Linux: load module based on another module -


is possible dynamically load (via mod_alias() maybe?) module requires module first loaded?

background: have usb->i2c bridge on system, , attached i2c end touchscreen. kernel module brings i2c automatically loads/unloads whenever usb cable connected/disconnected. i'm looking way load/unload touchscreen driver on same events.

you're talking module dependencies, generated depmod -a. actual dependency information stored in /lib/modules/version/modules.dep.

if /lib/modules/2.6.29/kernel/a.ko depends on b.ko (in same directory) add line:

/lib/modules/2.6.29/kernel/a.ko: /lib/modules/2.6.29/kernel/b.ko 

to create dependency.


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -