Documentation Home
>
编写设备驱动程序
>
第 3 部分 生成设备驱动程序
>
第 22 章 调试、测试和调优设备驱动程序
>
测试驱动程序
>
设置测试模块
>
装入和卸载测试模块
> 使用 modunload()
编写设备驱动程序
Previous
: 使用 modinfo() 函数
Next
: 设置 moddebug 内核变量
使用
modunload()
要从内存中删除所有当前未使用的模块,请使用模块 ID 0 运行 modunload(1M):
#
modunload -i 0
Previous
: 使用 modinfo() 函数
Next
: 设置 moddebug 内核变量
© 2010, Oracle Corporation and/or its affiliates