Kernel-ramdisk-module is a project mainly written in ..., it's free.
A simple RAMDisk module, to demonstrate character device drivers