Finally i completed the writing in multiple quantum.
Description of my Character driver-
step-1-> registered the driver by alloc_chrdev_region() and unregistered in exit function by unregister_chrdev_region(). After registering the driver you have major number that is given by by kernel.
step-2->Now initialize device by cdev_init() and use cdev-add() for mapping device to our kernel.
step -3->After that write an application in user space that give the open call to the device and also write an function in driver for opening the device.
step-4->in application write something into device, also write a function to write into device.