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.
insmodinstead?usbhidhas this:parm: quirks:Add/modify USB HID quirks by specifying quirks=vendorID:productID:quirks where vendorID, productID, and quirks are all in 0x-prefixed hex (array of charp).