I have a problem with modprobe command... I compiled the hello world module and loaded it with insmod, it works fine and when I do lsmod,
modprobe
insmod
lsmod
The reason is that modprobe looks into /lib/modules/$(uname -r) for the modules and therefore won't work with local file path. That's one of differences between modprobe and insmod.
/lib/modules/$(uname -r)