Kernel Modules, Major Number and Minor Number
Whenever you want to add something to the kernel code, there are two options – either add your code to the kernel code and compile/build the entire kernel image or compile your code separately and add it to the kernel image later. The first one is the earlier approach that was followed. But, considering the…