In computing, virtual memory is a memory management technique that is implemented using both hardware and software. It maps memory addresses used by a program, called virtual addresses, into physical addresses in computer memory but it lacks code details.
Recently, I have come across a very good blog post about virtual memory which explains in theory what is virtual memory and talk a bit about code
The Design and Implementation of the FreeBSD Operating System is an excellent book and this is the book I am reading, following and learning.