我试着写一个简单的字符设备驱动程序,现在,即使我打电话unregister_chrdev_region我仍然看到我的设备留在里面/proc/devices,像这样:
248 chardev
249 chardev
250 chardev
现在我无法插入任何模块,每次使用insmodshell 时都会告诉我:
Error: could not insert module test.ko: Device or resource busy
我在问如何从/proc/devices. 我已经用过rmmod,而且rm已经chardev从/dev. 但他们还在那里,被困在/proc/devices.