add_disk fails

view full story

http://www.linuxquestions.org – I am trying to write Ram Disk block device driver . For that i am using add_disk() function . But system hangs while inserting the module . I am using ubuntu 9.04 Can anyone please help me? Thanks. Here is the code .... /******************************************************************************** Basic Ram disk Implementation : ********************************************************************************/ #include <linux/fs.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/init.h> #include <linux/vmalloc.h> #include <linux/bl (HowTos)