I was reading linux device drivers and developed a memory driver. I allocate memory with help of Kmalloc and write something to it and free it. But when I switch off the power the driver gets vanished. whatever I wrote goes off.
I want to know the methods/routines so that when i do write it gets stored in the disk and I can retrive it even if system restarts after power off.