'linux/malloc.h' : not to be found in /usr/include/linux/
nor in the source linux-2.6.xx-x/include/linux/.
( May be present in kernel 2.2 or 2.4 ? )
If you want to use the old files, why not Google .. LDD3 Examples ..
and find e.g.
http://www.mail-archive.com/kernelne.../msg08932.html
" Re: LDD3 examples advice "
... and please look into the other messages
at the bottom of the page, for more info.
.....