在加载模块时出现cannot insert '*.ko': Device or resource busy错误

制作了一个模块,在加载是出现了cannot insert '*.ko': Device or resource busy错误。

原因: 是由于模块使用的是静态分配设备号,而这个设备号已经被系统中的其他设备所占用,所以导致出现cannot insert '*.ko': Device or resource busy的错误。可以使用命令:cat /proc/devices查看当前已经被使用了的设备号,如果申请了中断资源,使用命令:cat /proc/interrupts 查看当前已经使用了的中断号。

原文地址:https://www.cnblogs.com/pengdonglin137/p/3603995.html