EmbLogic's Blog

30.1.30: JATINDER KUNAR

Implemented the driver fror n number of byte reading and n number of byte writing. Now going to sleep as provjot sir said today …. go to bed on time. good night.
RCS file: lkm.c,v
Working file: lkm.c
head: 1.17
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 17; selected revisions: 17
description:
—————————-
—————————-
revision 1.17
date: 2013/07/11 16:39:20; author: jatinder; state: Exp; lines: +44 -5
Ipmelemented Scull_read ().
Successfully aabled to read n bytes of data by my driver.
the read algo is same a that of in scull_write.
app successfully read and write via node to drive.
—————————-
revision 1.16
date: 2013/07/11 15:25:43; author: jatinder; state: Exp; lines: +49 -2
fial to open scull_read.
—————————-
revision 1.15
date: 2013/07/11 10:12:17; author: jatinder; state: Exp; lines: +44 -16
Implemented the write for multiple scullqset successfully.
counted lnoq for inner loop for according to remaining bytes.
SO that inner loop never run more then 8 bytes ie onlu for 1 scullqset.
for next scullqset i used my own alogrithim.
preserved size in fnobtw , updted fnobtm and fnobsw .
—————————-
revision 1.14
date: 2013/07/11 06:39:26; author: jatinder; state: Exp; lines: +11 -4
Implemented copy_from_user fro n number of quauntum .
for this we made our own algorithm.
/.
—————————-
revision 1.13
date: 2013/07/11 06:03:50; author: jatinder; state: Exp; lines: +64 -14
implemented copy_from_user for 1 quantum .
—————————-
revision 1.12
date: 2013/07/09 10:17:35; author: jatinder; state: Exp; lines: +66 -6
implemented the create_qset for n number of qsets.
—————————-
revision 1.11
date: 2013/07/09 07:34:52; author: jatinder; state: Exp; lines: +25 -11
Implemented create_scullqset() for nosqs .
—————————-
revision 1.10
date: 2013/07/09 07:18:15; author: jatinder; state: Exp; lines: +61 -0
calculated the no of quantum and no of scullqset.
implemented the create_scullqset() for creatinf 1 scullqset.
—————————-
revision 1.9
date: 2013/07/08 08:31:27; author: jatinder; state: Exp; lines: +28 -2
Gave the declartion of scull_read() and scull_write().
and in header mapped the read and write funtion to scull_read and sucll_write .
—————————-
revision 1.8
date: 2013/07/08 07:32:22; author: jatinder; state: Exp; lines: +19 -3
in sucll_trim function we checked for fsculldev and fscullded->sucllqet that is is NULL or have some value.
—————————-
revision 1.7
date: 2013/07/04 06:51:41; author: jatinder; state: Exp; lines: +61 -15
decaled lsculldev in open routine.
used container_of macro.
save the information given by container_of macro in struct inode’s private_data member.
call the scull_trim function
—————————-
revision 1.6

date: 2013/07/03 09:27:59; author: jatinder; state: Exp; lines: +57 -1
gave defination of sucll_open() and scull_realse() .
intialized variable od sculldev for number of nod.
scucessfully opend the file from my driver.
—————————-
revision 1.5
date: 2013/07/03 07:42:02; author: jatinder; state: Exp; lines: +32 -25
used loop scull_setupfunction to add nod number of device
in clenup_func() used nod number of time cdev_del().
and save the major and minor number in tmp.
pssed this tmp in unregister_chrdev_region for unregister the driver
—————————-
revision 1.4
date: 2013/07/03 06:57:12; author: jatinder; state: Exp; lines: +54 -0
declared scull_setup function.
used cdev_init and cdev_add() in this function.
initialized the members of struct cdev.
in cleanup routine used cdev_del() function .
in cleanup routine always do things in the reverse order wrt initialization routine.
—————————-
revision 1.3
date: 2013/07/03 06:02:39; author: jatinder; state: Exp; lines: +13 -0
used kmalloc for number of node.
and used kfree function in cleanup module.
—————————-
revision 1.2
date: 2013/07/03 05:30:46; author: jatinder; state: Exp; lines: +24 -9
used register_chrdev_region function.
call param_module
—————————-
revision 1.1
date: 2013/07/02 19:45:49; author: jatinder; state: Exp;
Initial revision
=============================================================================
105,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>