When the book was writen they used the 2.6.10 kernel and it assumes you have the kernel source in /usr/src/linux
/usr/src/linux is usually a symlink that point to your perticular kernel tree
so it would probably point to somthing like /usr/src/linux-2.6.18-rx were x is a number
make sure the symlink exists and point to the kernel tree you want to compile
If your following the book you are best to download the 2.6.10 kernel and compile it with kernel hacking and debug support enabled.
You can use your own 2.6.18 kernel but there may be slight differences.
If you have not compiled a kernel before it may seem strange at first but there is plenty of info and howtos if you google for them once youve done it a few times it becomes quite easy and you can optimise the kernel for your perticular system.
If you use grub you can then boot to the debug kernel for testing your code or you normal kernel.
try
www.kernel.org or
www.kernelnewbies.org for info on building kernels
BTW Ive just stared this book and am on chapter 5 but am finding it a bit hard going because the source examples seem to be a bit under commented and although the guys who have writen it know what they are talking about, they assume to much about my knowledge and dont explain things as fully as I would like. I have had to read a couple of chapters twice in order to understand it.
what do you think about it?