EmbLogic's Blog

Insert the driver into the kernel and remove the driver from kernel

RCS file: init.c,v
Working file: init.c
head: 1.6
branch:
locks: strict
emblogic: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
Print a statement in the kernel
Register in the kernel.
—————————-
revision 1.6 locked by: emblogic;
date: 2015/04/25 11:05:53; author: emblogic; state: Exp; lines: +13 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/04/25 10:24:58; author: emblogic; state: Exp; lines: +12 -1
Memory is allocated in the kernel by using kmalloc.
cdev is initalize by using cdev_init.
after initialization its value is added.
—————————-
revision 1.4
date: 2015/04/25 07:45:30; author: emblogic; state: Exp; lines: +31 -7
Register the module in the kernel by using aloc_chardev_region.
Also input the value of the nod from the user.
—————————-
revision 1.3
date: 2015/04/24 12:33:08; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/04/24 12:21:54; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.1
date: 2015/04/24 11:40:51; author: emblogic; state: Exp;
Initial revision
=============================================================================

RCS file: clean.c,v
Working file: clean.c
head: 1.4
branch:
locks: strict
emblogic: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
Include the file_operation structure.
—————————-
revision 1.4 locked by: emblogic;
date: 2015/04/25 11:05:56; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/04/25 10:33:10; author: emblogic; state: Exp; lines: +3 -0
Cleaning process is reverse of the initalization.
first cdev struct is remove from the device table.
—————————-
revision 1.2
date: 2015/04/25 07:51:20; author: emblogic; state: Exp; lines: +12 -4
Unregister the module from the kernel.
—————————-
revision 1.1
date: 2015/04/24 11:41:38; 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>