Skip to content
Advertisement

Tag: insmod

insmod fails with “Unknown symbol in module”

I am working on Linuxmint Cinnamon 19 Ubuntu 18.04, kernel version 4.15.0-20-generic The following I see during compilation: Then I try to install the module with sudo insmod elevator.ko Seeing in the logs: dmesg | tail Makefile elevator.c issue_request.c start_elevator.c stop_elevator.c Functions are static and there is only one makefile in same directory. So my question is: Why can’t the

Problem running “Hello World” linux module

I’m trying to compile and run a “Hello World” module from the book “Linux Device Drivers” the program ~/ldd3/hello.c I’m trying to compile is: And the Makefile is: When I run make, the compilation seems ok: But when I run : the “Hello World” message doesnt get printed. Nor do I get a message printed when I run Can you

Advertisement