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

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案