This document has gone through the basics of programming in RTLinux. Once you have understood the basic concept it is not difficult to make steps by your own. So you can go through all other examples available along with the rtlinux source. Then you should be able to write modules and test them. For more information regarding module programming, you can refer to 'Linux Kernel Module Programming Guide' by Ori Pomerantz.