Exercises from Joseph Kong's Designing BSD Rootkits, updated for FreeBSD 11/12.
Even though the book is over 10 years old, it's highly recommended as it's quite a challenge to update the source code provided in the book to work on modern releases.
Further Resources: learning-kernelhacking.