EmbLogic's Blog

30.01.30 : Taruna

RCS file: lkm.c,v
Working file: lkm.c
head: 1.18
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 18; selected revisions: 18
description:
Created the base module.
Used alloc_chrdev_region and register_chrdev_region to register the driver and unregistered it using unregister_chrdev_region.
—————————-
revision 1.18
date: 2013/07/17 08:03:34; author: taruna; state: Exp; lines: +62 -18
Did lseek successfully in reading for offset less than 8.
—————————-
revision 1.17
date: 2013/07/16 10:18:27; author: taruna; state: Exp; lines: +34 -11
Implemented lseek for offset less than 8.
Gave this lseek in reading.
—————————-
revision 1.16
date: 2013/07/16 06:00:14; author: taruna; state: Exp; lines: +74 -19
Declared the scull_lseek().
And tracked the offset position in filep->f_pos where filep is a pointer to struct file.
Printed the offset position.
Did this in scull_read().
—————————-
revision 1.15
date: 2013/07/15 04:58:39; author: taruna; state: Exp; lines: +101 -3
Able to read upto the user defined no. of characters successfully.
—————————-
date: 2013/07/11 10:12:48; author: taruna; state: Exp; lines: +45 -15
Implemented writing to multiple quantums of multiple qsets successfully.
Calculated lnoq i.e, local no. of quantums for using in the inner loop so that it never runs for more than 8 bytes which is the size of one quantum.
for moving to the next scullqset , preserved the size of bytes to be written in fnobtw and updated fnobtw and fnobsw.
Also initialised nobsw to 0 after every completion of inner loop.
—————————-
revision 1.13
date: 2013/07/11 06:39:16; author: taruna; state: Exp; lines: +14 -8
Implemented writing into multiple quantums using copy_from-user.
—————————-
revision 1.12
date: 2013/07/11 06:10:40; author: taruna; state: Exp; lines: +69 -5
Implemented writing to quantums using copy_from_user() for 1 quantum.
—————————-
revision 1.11
date: 2013/07/09 10:18:35; author: taruna; state: Exp; lines: +53 -5
Implemented creat_qset for any no. of qsets.
—————————-
revision 1.10
date: 2013/07/09 07:34:31; author: taruna; state: Exp; lines: +26 -8
Implemented the creat_scullqset() for any no. of scullqsets.
—————————-
revision 1.9
date: 2013/07/09 07:18:51; author: taruna; state: Exp; lines: +59 -2
Calculated the no. of scullqsets and no. of quantums.
Implemented creat_scullqset for creating one scullqset.
—————————-
revision 1.8
date: 2013/07/08 08:31:39; author: taruna; state: Exp; lines: +29 -0
Mapped the read and write to scull_read and scull_write() respectively.
—————————-
revision 1.7
date: 2013/07/08 07:32:41; author: taruna; state: Exp; lines: +20 -1
Initialised opencount in the scull_init function.
Declared the scull_trim().
—————————-
revision 1.6
date: 2013/07/04 06:51:22; author: taruna; state: Exp; lines: +42 -0
Declared lsculldev in scull_open() , got a local device.
Then got the cdev structure contained in ScullDev structure.
Saved the lsculldev to preserve the device in private_data of struct file.

Checked the access mode and called the function scull_trim to trim the device.
—————————-
revision 1.5
date: 2013/07/03 09:27:15; author: taruna; state: Exp; lines: +54 -2
Wrote the functions : init_scull , scull_open and scull_release.
—————————-
revision 1.4
date: 2013/07/03 07:43:05; author: taruna; state: Exp; lines: +35 -27
Used loop to add nod no. of devices in scull_setup() function.
Stored the major and minor number from alloc_chrdev_region in variable tmp using MKDEV and passed this tmp in unregister_chrdev_region in the cleanup function.
—————————-
revision 1.3
date: 2013/07/03 06:56:13; author: taruna; state: Exp; lines: +51 -0
Initialized the struct cdev through function scull_setup.
Initializeed the owner , operations and dev of struct cdev.

used cdev_init and cdev_add in scull_setup function and cdev_del in the cleanup function.
—————————-
revision 1.2
date: 2013/07/03 05:59:03; author: taruna; state: Exp; lines: +18 -2
Allocated memory for struct Sculldev using kmalloc and freed that memory using kfree in cleanup function.
—————————-
revision 1.1
date: 2013/07/03 05:35:59; author: taruna; state: Exp;
Initial revision
102,1 98%
=============================================================================
103,1 Bot

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>