RCS file: header.h,v Working file: header.h head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: Decleared the header files that are linux/init.h , linux/modules.h ,linux/fs.h also define MAJORNO, MINORNO and NOD Gave the MODULE_LICENSE(),MODULE_AUTHOR,MODULE_DESCRIPTION() Also define the device name ---------------------------- revision 1.4 locked by: root; date: 2015/04/25 04:53:36; author: root; state: Exp; lines: +1 -0 included cdev.h header file. ---------------------------- revision 1.3 date: 2015/04/25 04:16:22; author: root; state: Exp; lines: +1 -0 *** empty log message *** ---------------------------- revision 1.2 date: 2015/04/24 11:19:28; author: root; state: Exp; lines: +1 -0 Included the header file i.e linux/moduleparam.h ---------------------------- revision 1.1 date: 2015/04/24 10:56:53; author: root; state: Exp; Initial revision ============================================================================= RCS file: Declearation.h,v Working file: Declearation.h head: 1.6 branch: locks: strict root: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: This is Declearation function. ---------------------------- revision 1.6 locked by: root; date: 2015/04/25 05:16:18; author: root; state: Exp; lines: +1 -1 *** empty log message *** ---------------------------- revision 1.5 date: 2015/04/25 04:54:02; author: root; state: Exp; lines: +2 -1 Decleare the device representation structure inside struct dev. ---------------------------- revision 1.4 date: 2015/04/25 04:33:47; author: root; state: Exp; lines: +11 -1 Included the structure for allocating memory to the device. ---------------------------- revision 1.3 date: 2015/04/25 04:20:48; author: root; state: Exp; lines: +1 -2 *** empty log message *** ---------------------------- revision 1.2 date: 2015/04/25 04:16:24; author: root; state: Exp; lines: +1 -0 *** empty log message *** ---------------------------- revision 1.1 date: 2015/04/24 10:59:36; author: root; state: Exp; Initial revision ============================================================================= RCS file: init.c,v Working file: init.c head: 1.9 branch: locks: strict root: 1.9 access list: symbolic names: keyword substitution: kv total revisions: 9; selected revisions: 9 description: This is initialization function . Initialization is done by using MACRO module_init(). Register the device through alloc_chrdev_region(). printed the major and minor no ---------------------------- revision 1.9 locked by: root; date: 2015/04/25 05:16:20; author: root; state: Exp; lines: +1 -0 *** empty log message *** ---------------------------- revision 1.8 date: 2015/04/25 04:56:08; author: root; state: Exp; lines: +12 -3 The device representation structure is initialized . structure is initialied using cdev_init() And also added to the device entry in the device table by using cdev_add() ---------------------------- revision 1.7 date: 2015/04/25 04:36:55; author: root; state: Exp; lines: +1 -1 *** empty log message *** ---------------------------- revision 1.6 date: 2015/04/25 04:34:54; author: root; state: Exp; lines: +9 -2 Allocated memory for device by using kmalloc(). nd also use memset() to flush out the garbage. ---------------------------- revision 1.5 date: 2015/04/25 04:20:50; author: root; state: Exp; lines: +1 -0 *** empty log message *** ---------------------------- revision 1.4 date: 2015/04/24 11:41:17; author: root; state: Exp; lines: +1 -1 *** empty log message *** ---------------------------- revision 1.3 date: 2015/04/24 11:38:37; author: root; state: Exp; lines: +1 -1 *** empty log message *** ---------------------------- revision 1.2 date: 2015/04/24 11:20:38; author: root; state: Exp; lines: +2 -2 Gave the module parameter through module_param(). ---------------------------- revision 1.1 date: 2015/04/24 11:01:53; author: root; state: Exp; Initial revision ============================================================================= RCS file: clean.c,v Working file: clean.c head: 1.3 branch: locks: strict root: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: This is cleanup function or we can say that its a exit function. this is done by using MACRO module_exit().. Unregister the device through unregister_chrdev_region(). ---------------------------- revision 1.3 locked by: root; date: 2015/04/25 05:16:21; author: root; state: Exp; lines: +1 -1 *** empty log message *** ---------------------------- revision 1.2 date: 2015/04/25 05:04:47; author: root; state: Exp; lines: +2 -0 Deallocting the memory by using kfree() Removed the device representing structure cdev by using cdev_del(). ---------------------------- revision 1.1 date: 2015/04/24 11:04:05; author: root; state: Exp; Initial revision =============================================================================