EmbLogic's Blog

Inserting a file inside a Kernel file system

RCS file: entry.c,v
Working file: entry.c
head: 1.6
branch:
locks: strict
raghav: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;    selected revisions: 6
description:
program to insert a driver file inside our kernel
—————————-
revision 1.6    locked by: raghav;
date: 2014/02/11 12:33:38;  author: raghav;  state: Exp;  lines: +2 -2
ERROR: i was using name function name “out” for exit function
Now i changed it to outo , and now it works without showing any bug
—————————-
revision 1.5
date: 2014/02/11 12:31:14;  author: raghav;  state: Exp;  lines: +2 -1
ERROR: forget to write retern 0 in init function
—————————-
revision 1.4
date: 2014/02/11 12:27:34;  author: raghav;  state: Exp;  lines: +5 -5
creating  a seperate Makefile to execute both files init.o and exit.o
This make file is important as we can’t compile out init func seperately
—————————-
revision 1.3
date: 2014/02/11 12:17:12;  author: raghav;  state: Exp;  lines: +14 -0
using module init function to insert the file inside the kernel and exit function is used to remove the file from kernel
Make sure dont use the same function name as init and exit are built in name and already defined inside kernels else it will create a problem
—————————-
revision 1.2
date: 2014/02/11 12:12:17;  author: raghav;  state: Exp;  lines: +2 -1
Inclluding linux/module.h and linux/init.h
and including MODULE_LICENCE
—————————-
revision 1.1
date: 2014/02/11 12:10:44;  author: raghav;  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>