It isn't up-to-date anymore but it's nonetheless a standard work.
http://www.amazon.com/Designing-BSD-...0235455&sr=8-1
Designing BSD Rootkits: An Introduction to Kernel Hacking
This e.g. is a good book to understand some of the actual internals of FreeBSD.