- 论坛徽章:
- 5
|
- [root@T-bagwell modules]# insmod hello.ko
- Message from syslogd@localhost at Jun 20 13:14:44 ...
- kernel:addr = ecd79d40, Thank you Sir.
- [root@T-bagwell modules]#
- [root@T-bagwell modules]# rmmod hello
- [root@T-bagwell modules]#
- Message from syslogd@localhost at Jun 20 13:14:51 ...
- kernel:Goodbye Sir.
- [root@T-bagwell modules]# insmod hello.ko
- [root@T-bagwell modules]#
- Message from syslogd@localhost at Jun 20 13:14:58 ...
- kernel:addr = ed07b200, Thank you Sir.
- [root@T-bagwell modules]# lsmod | grep hello
- hello 1300 0
- [root@T-bagwell modules]#
复制代码 楼主的错误信息能发出来看看不?
exit的时候应该kfree一下kmalloc的mem吧? |
|