EmbLogic's Blog

Successfully Created kernel module and registered the device..

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
This includes the header file.
Included init.h,modules.h,fs.h.
defined a extern variable major.
gave a macro DEVICE_NAME.
—————————-
revision 1.1    locked by: root;
date: 2015/04/24 05:56:00;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: declaration.h,v
Working file: declaration.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
This is the declaration file
Gave structure variable for struct file_operations.
—————————-
revision 1.1    locked by: root;
date: 2015/04/24 05:58:06;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: init.c,v
Working file: init.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
This is the initialisation program to initialise the device.
Calling initialisation function through macro module_init().
Registered the device through register_chrdev()
—————————-
revision 1.1    locked by: root;
date: 2015/04/24 06:04:28;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: clean.c,v
Working file: clean.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
This is the cleanup program.
Calling clean function through module_exit().
unregistered the device through unregister_chrdev()
—————————-
revision 1.1    locked by: root;
date: 2015/04/24 06:09:40;  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>