Module Programming Problem in Redhat
I don't know where to put this question correctly, Redhat box or Kernel box. But it's a problem in kernel programming so I thought it may sit here :).
I have just had a start in kernel module programming. All I have were a Redhat Enterprise WS3 box and "The Linux Kernel Programming Guide". When I tried to compile my first module as the instruction
I found that the directory /usr/src/linux didn't exist in Redhat. And I have tried to find a equivalent directory but nothing appeared. What can I do in this case? How can I compile my modules in Redhat distro?
[root@pcsenonsrv test_module]# make −C /usr/src/linux−`uname −r` SUBDIRS=$PWD modules