EmbLogic's Blog

Implimentation of module insertion in character driver is done

RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
includimg all the headerfile which are required like init.h modue.h kernel.h
then give the author name and license
—————————-
revision 1.2
date: 2015/04/24 17:27:26;  author: emblogic;  state: Exp;  lines: +0 -1
now define macro for minor
again define macro for major and for nod
—————————-
revision 1.1
date: 2015/04/24 17:13:14;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: declaration.h,v
Working file: declaration.h
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
define minor major nod with extern int
also define extern dev_
—————————-
revision 1.4
date: 2015/04/24 17:32:13;  author: emblogic;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/04/24 17:28:17;  author: emblogic;  state: Exp;  lines: +0 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/04/24 17:15:21;  author: emblogic;  state: Exp;  lines: +0 -1
now define a struct Qset
which having data tpues like another structure pointer Qset *next with the double pointer **data
—————————-
revision 1.1
date: 2015/04/24 17:13:14;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: init.c,v
Working file: init.c
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
start with the registration by using alloc_
by using alloc_chrdev_region function
—————————-
revision 1.4
date: 2015/04/24 17:38:59;  author: emblogic;  state: Exp;  lines: +1 -1
now use c_add to add
—————————-
revision 1.3
date: 2015/04/24 17:33:07;  author: emblogic;  state: Exp;  lines: +1 -1
now use memset to cleean the memory with garbage
—————————-
revision 1.2
date: 2015/04/24 17:28:28;  author: emblogic;  state: Exp;  lines: +1 -1
after registeration then provide memory by using kmalloc fuction
—————————-
revision 1.1
date: 2015/04/24 17:13:14;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

RCS file: clean.c,v
Working file: clean.c
head: 1.5
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
in this function we do reverse opration of init like unregister the function
—————————-
revision 1.5
date: 2015/04/24 17:42:02;  author: emblogic;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/04/24 17:36:13;  author: emblogic;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/04/24 17:29:52;  author: emblogic;  state: Exp;  lines: +1 -1
after using kmolloc we have free tha maemory
memory by using kfree()
—————————-
revision 1.2
date: 2015/04/24 17:18:10;  author: emblogic;  state: Exp;  lines: +1 -1
now we have to delete the c_add call by using del call
—————————-
revision 1.1
date: 2015/04/24 17:13:14;  author: emblogic;  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>