Patching Kernel Modules Using DKMS

Dynamic Kernel Module Support (DKMS) is a framework that is mostly used to build and install external kernel modules. However, it can also be used to install a specific patch to the modules of the current kernel, for example, to apply a specific fix to the kernel’s Bluetooth USB subsystem. Here’s how.