EmbLogic's Blog

Character Driver

Rlog file for character driver
—————————————————————————-
RCS file: lkm2.c,v
Working file: lkm2.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
Base file for character device driver.
It register Device Driver creats major no.
Also it unregister the driver.
—————————-
revision 1.5 locked by: root;
date: 2013/07/03 12:44:29; author: zahid; state: Exp; lines: +6 -3
Introduce fucntionality of command line argumets.
Using module_param().
—————————-
revision 1.4
date: 2013/07/03 11:55:20; author: zahid; state: Exp; lines: +8 -1
We initialize all cdev members like owners, ops, dev, etc.
Initialize successfully.
—————————-
revision 1.3
date: 2013/07/03 11:31:44; author: zahid; state: Exp; lines: +23 -2
We initialize the cdev using cdev_init().
Then we add this device using cdev_add().
Now our device is live and its operation can be called by the kernel.
—————————-
revision 1.2
date: 2013/07/03 10:49:06; author: zahid; state: Exp; lines: +20 -5
Now program allocate memory to struct sculldev using kmalloc().
Then we set the allocted memory to ” using memset.
—————————-
revision 1.1
date: 2013/07/03 10:00:00; author: zahid; 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>