Ok , I'm reading http://sdn.vlsm.org/share/LDP/lkmpg/2.6/html/index.html
in an attempt to learn a bit about Linux Kernerl Module programming .
The programming part is fairly easy to understand .. what I can't understand is how I am supposed to compile the modules ..
So, let's look at a simple Makefile for compiling a module named hello-1.c:
.. so .. do I just go "vi Makefile" in the same dirrectory as my hello-1.c and insert there obj-m += hello-1.o ; followed by "make -C /usr/src/linux-`uname -r` SUBDIRS=$PWD modules" ? because it doesn't work ..
Also .. "usual" task as .. writing/reading to/from files/sockets and other tasks .. are they achieved in modules in the same way (same functions) as in normal programs ?
Also , does anyone know of any more , valuable (preferably Free and available Online) resources on this topic ?
Thank you for your attention !