forceunload
上传用户:wudi5211
上传日期:2010-01-21
资源大小:607k
文件大小:0k
- #!/bin/sh
- # if you have kdebug, this unloads a module with non-0 usage count.
- # use with care
- set -v
- add=`ksyms -m | awk "/.---.*[$1]/ {print \$1}"`
- echo "
- set *0x${add}=0
- quit
- y
- " | kgdb
- rmmod $1