Linux

Module-related shell commands

jackyjung 2012. 1. 17. 11:05

modprobe
cp hello_md.ko /lib/modules/2.6.32-24-generic/kernel/

root@jcjung:~/work/sample_module# cp hello_md.ko /lib/modules/2.6.32-24-generic/kernel/root@jcjung:~/work/sample_module# modprobe hello_md
FATAL: Module hello_md not found.
root@jcjung:~/work/sample_module# depmod
root@jcjung:~/work/sample_module# modprobe hello_md
root@jcjung:~/work/sample_module# lsmod | grep hello
hello_md                 653  0
root@jcjung:~/work/sample_module# lsmod | grep hello
hello_md                 653  0
root@jcjung:~/work/sample_module# modprobe -r hello_md
root@jcjung:~/work/sample_module# lsmod | grep hello
root@jcjung:~/work/sample_module#