简体   繁体   中英

Can't remove linux kernel module, yet also cannot install module

I have a simple scull module I have loaded with:

sudo insmod scull.ko

This worked fine, but I changed something in the src and recompiled, now I want to remove the old module and re-install it.

I've tried

sudo rmmod scull.ko

Which returns with rmmod: ERROR: Module scull is not currently loaded

Yet trying to re-install gives insmod: ERROR: could not insert module scull.ko: File exists

What the hell?

可能不再相关,但这可能是因为(如果您使用 sysfs)您没有删除 sysfs 类,因此它无法创建文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM