EmbLogic's Blog

successfully Registering and Initialization of driver…..

RCS file: ./init.c,v
Working file: ./init.c
head: 1.6
branch:
locks: strict
subhash: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
decalre the header.h and declerations.h
and decalre the dev_t dev nad a struct file_operation fp
and three integer type varibles
—————————-
revision 1.6 locked by: subhash;
date: 2015/04/25 12:55:00; author: subhash; state: Exp; lines: +2 -2
then add operation is adding to the device
and extract the minor and major number from the dev
—————————-
revision 1.5
date: 2015/04/25 12:52:50; author: subhash; state: Exp; lines: +2 -2
then sdev->cdev.ops=&fp with the file operation
—————————-
revision 1.4
date: 2015/04/25 12:47:19; author: subhash; state: Exp; lines: +2 -2
give the memeset call for initializing the aloccting memory with null
after initialize the cdev_init fxn
give the cdev.owner their on address space by the THIS_MODULE
—————————-
revision 1.3
date: 2015/04/25 12:44:22; author: subhash; state: Exp; lines: +2 -2
initialze the varibles with their macros that is declare in the header.h
and give the kmalloc call to allocate the memory space int the kernel memory
check it whether the meomory is allocating or not
—————————-
revision 1.2
date: 2015/04/25 12:42:09; author: subhash; state: Exp; lines: +4 -4
give the initialization fxn call
in it give alloc_chrdev_region to register the device
—————————-
revision 1.1
date: 2015/04/25 12:41:06; author: subhash; state: Exp;
Initial revision
=============================================================================

RCS file: ./clean.c,v
Working file: ./clean.c
head: 1.4
branch:
locks: strict
subhash: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
declare the header.h and decleration.h
—————————-
revision 1.4 locked by: subhash;
date: 2015/04/25 12:37:37; author: subhash; state: Exp; lines: +1 -1
give the cdev_del call for delete the add fxn to the device
—————————-
revision 1.3
date: 2015/04/25 12:36:11; author: subhash; state: Exp; lines: +3 -3
after allocating the memory to the device then in exit fxn give free call to realise the memory
—————————-
revision 1.2
date: 2015/04/25 12:33:47; author: subhash; state: Exp; lines: +1 -1
give the exit function call
and after that give the unregister call to the for the register device
and at last give exit function defination .
—————————-
revision 1.1
date: 2015/04/25 12:32:13; author: subhash; state: Exp;
Initial revision
=============================================================================

RCS file: ./header.h,v
Working file: ./header.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
declare the

and
—————————-
revision 1.3 locked by: root;
date: 2015/04/25 12:19:24; author: root; state: Exp; lines: +2 -2
initialize the major no macro with 0
and minor number macro with 0
and device name and numner of devices
—————————-
revision 1.2
date: 2015/04/25 12:17:40; author: root; state: Exp; lines: +2 -2
give the module license ,module aurhor name and module description
—————————-
revision 1.1
date: 2015/04/25 12:17:02; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: ./declerations.h,v
Working file: ./declerations.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
declare a struct qset
int we have one qset pointer and a doublr data pointer
—————————-
revision 1.3 locked by: root;
date: 2015/04/25 12:27:06; author: root; state: Exp; lines: +2 -2
take three extern unsigned int varible
and one dev_t dev
and a extern struct Dev with poniter varible
—————————-
revision 1.2
date: 2015/04/25 12:25:16; author: root; state: Exp; lines: +2 -2
declare another struct DEv
and init we srtuct Qset pointer and a struct cdev c_dev varible
—————————-
revision 1.1
date: 2015/04/25 12:24:46; author: root; state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>