how to use a ramdisk driver

help!
i need a mkifs demo with ramdisk support .
thanks