EmbLogic's Blog

Successfully created simplest possible kernel module and registered device in kernel.

RCS file: header.h,v
Working file: header.h
head: 1.3
branch:
locks: strict
vineet: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This is base header file for simplest kernel module.
included modules.h
included init.h
Added author, license and devise description.
.,
—————————-
revision 1.3 locked by: vineet;
date: 2015/04/24 05:42:14; author: vineet; state: Exp; lines: +0 -1
defined major number using extern storage class.
—————————-
revision 1.2
date: 2015/04/24 05:40:13; author: vineet; state: Exp; lines: +1 -0
Created macro for dev_name.
—————————-
revision 1.1
date: 2015/04/24 05:38:17; author: vineet; state: Exp;
Initial revision
=============================================================================

RCS file: init.c,v
Working file: init.c
head: 1.3
branch:
locks: strict
vineet: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This is the base file for initialization function.
created initialization function.
printed hello kernel using printk
—————————-
revision 1.3 locked by: vineet;
date: 2015/04/24 05:42:55; author: vineet; state: Exp; lines: +0 -1
printed major number using printk.
—————————-
revision 1.2
date: 2015/04/24 05:40:46; author: vineet; state: Exp; lines: +1 -0
registered device using register_chrdev.
—————————-
revision 1.1
date: 2015/04/24 05:38:17; author: vineet; state: Exp;
Initial revision
=============================================================================

RCS file: clean.c,v
Working file: clean.c
head: 1.3
branch:
locks: strict
vineet: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
this is base file for cleanup function.
created cleanup function.
printed exit message using prink
—————————-
revision 1.3 locked by: vineet;
date: 2015/04/24 05:43:12; author: vineet; state: Exp; lines: +0 -1
added major no. to unregister function.
—————————-
revision 1.2
date: 2015/04/24 05:41:10; author: vineet; state: Exp; lines: +1 -0
unregistered device using unregister_chrdev
—————————-
revision 1.1
date: 2015/04/24 05:38:17; author: vineet; 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>