Skip to main content
added 127 characters in body
Source Link
EdiD
  • 342
  • 5
  • 17

How to force linux kernel to load my custom module instead of default one ? There is a file:

/lib/modules/$(uname -r)/modules.order

Seems like it is responsible to load modules in specific order. How it can be generated to prioritize my module or maybe it is enough to place it in /etc/modules-load.d for loading during boot and create udev rule binding hardware by productID and vendorID to this custom module ?


Example:

usbhid module is used for mouse and keyboard. I want my mouse uses my custom module instead of usbhid.

How to force linux kernel to load my custom module instead of default one ? There is a file:

/lib/modules/$(uname -r)/modules.order

Seems like it is responsible to load modules in specific order. How it can be generated to prioritize my module or maybe it is enough to place it in /etc/modules-load.d for loading during boot and create udev rule binding hardware by productID and vendorID to this custom module ?

How to force linux kernel to load my custom module instead of default one ? There is a file:

/lib/modules/$(uname -r)/modules.order

Seems like it is responsible to load modules in specific order. How it can be generated to prioritize my module or maybe it is enough to place it in /etc/modules-load.d for loading during boot and create udev rule binding hardware by productID and vendorID to this custom module ?


Example:

usbhid module is used for mouse and keyboard. I want my mouse uses my custom module instead of usbhid.

Source Link
EdiD
  • 342
  • 5
  • 17

How to load custom kernel module?

How to force linux kernel to load my custom module instead of default one ? There is a file:

/lib/modules/$(uname -r)/modules.order

Seems like it is responsible to load modules in specific order. How it can be generated to prioritize my module or maybe it is enough to place it in /etc/modules-load.d for loading during boot and create udev rule binding hardware by productID and vendorID to this custom module ?