Error: "device or resource busy" in removing proc module

view full story

http://stackoverflow.com – I wrote a linux module to creat a proc file and write and read the data from it. But I am unable to remove the module, its showing an error unable to remove saying "device or resource busy. here is my code. #include<linux/module.h> #include<linux/kernel.h> #include<linux/fs.h> /*this is the file structure, file open read close */ #include<linux/cdev.h> /* this is for character device, makes cdev avilable*/ #include<linux/semaphore.h> /* this is for the semaphore*/ #include<linux/uaccess.h> /*this is for copy_user vice vers*/ #include<linux/proc_fs.h> (HowTos)