successfully done proc implimentation…..
RCS file: amit.c,v
Working file: amit.c
head: 1.20
branch:
locks: strict
amitdalal: 1.20
access list:
symbolic names:
keyword substitution: kv
total revisions: 20; selected revisions: 20
description:
added function of copy from user
printk the no of byte writen successfully for one quantum
—————————-
revision 1.20 locked by: amitdalal;
date: 2013/07/28 00:07:05; author: amitdalal; state: Exp; lines: +21 -7
create proc_read_entry function inside sculldev loop
define read_proc out side the sculldev loop
—————————-
revision 1.19
date: 2013/07/26 19:26:10; author: amitdalal; state: Exp; lines: +4 -3
use spin_lock_irq before raeding
use spin_unlock_irq func. at the end off writing
—————————-
revision 1.18
date: 2013/07/26 00:33:49; author: amitdalal; state: Exp; lines: +9 -19
use wait_for_complition in read
use complete_all in write
—————————-
revision 1.17
date: 2013/07/25 23:23:36; author: amitdalal; state: Exp; lines: +9 -8
initialise sem_init again
—————————-
revision 1.16
date: 2013/07/25 23:02:12; author: amitdalal; state: Exp; lines: +33 -11
initialise two semaphore for read and write in sculldev initialisation
down semaphore in write for write
at the end up semaphore for read
down semaphore in write for read
at the end up semaphore for write
—————————-
revision 1.15
date: 2013/07/22 22:47:17; author: amitdalal; state: Exp; lines: +5 -5
initialise the semaphore init in scull_open for kernel level synchronisation
call down_interruptible in open
call up in release function
define trim function
calculate nosqs and noq agin in trim function
memset the quantum_size
to free all quantum
—————————-
revision 1.14
date: 2013/07/22 22:07:46; author: amitdalal; state: Exp; lines: +102 -40
define fpos variable for fetching file position in read
add fpos to count to calculate the nosqs and noq
—————————-
revision 1.13
date: 2013/07/17 00:08:24; author: amitdalal; state: Exp; lines: +0 -1
added some variable for write using llseek
added bpos for position update in copy from user
define bpos flag
—————————-
revision 1.12
date: 2013/07/17 00:07:11; author: amitdalal; state: Exp; lines: +0 -1
added variable bpos for position
use flag and j
—————————-
revision 1.11
date: 2013/07/17 00:02:29; author: amitdalal; state: Exp; lines: +0 -2
added some variable for reading using llseek
fix the problem related with left out of some first character
—————————-
revision 1.10
date: 2013/07/16 23:37:14; author: amitdalal; state: Exp; lines: +244 -194
give call to llseek
define function llseek
—————————-
revision 1.9
date: 2013/07/15 21:52:06; author: amitdalal; state: Exp; lines: +67 -41
added loff_t function to .c file
use f_pos for storing the value of pos
—————————-
revision 1.8
date: 2013/07/11 17:37:19; author: amitdalal; state: Exp; lines: +53 -38
modified code for write to get required no of qset
add lnoq variable
—————————-
revision 1.7
date: 2013/07/11 06:05:24; author: amitdalal; state: Exp; lines: +0 -1
add loop variable in loop for reading
remove some bug in reading loop
—————————-
revision 1.6
date: 2013/07/11 05:37:03; author: amitdalal; state: Exp; lines: +4 -4
remove some bug from write function
added loop variable to specify no of quantum in 2nd qset
—————————-
revision 1.5
date: 2013/07/11 05:18:10; author: amitdalal; state: Exp; lines: +76 -16
creating read function
use copy to user function
modifing the copy to user function
—————————-
revision 1.4
date: 2013/07/11 00:41:53; author: amitdalal; state: Exp; lines: +1 -0
debbuging problem causing kernel crash
—————————-
revision 1.3
date: 2013/07/11 00:19:58; author: amitdalal; state: Exp; lines: +11 -7
added variable loop
use while loop for creating multiple qset
—————————-
revision 1.2
date: 2013/07/11 00:00:36; author: amitdalal; state: Exp; lines: +25 -4
added the function of quantum written for 8 byte
debugging the problem related to writting of data not 8 byte
fix problem successfully related to written
—————————-
revision 1.1
date: 2013/07/10 21:22:34; author: amitdalal; state: Exp;
Initial revision
=============================================================================
RCS file: header.h,v
Working file: header.h
head: 1.9
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
added asm header .h for copy from user
—————————-
revision 1.9
date: 2013/07/28 00:09:43; author: amitdalal; state: Exp; lines: +1 -0
include header file for proc
—————————-
revision 1.8
date: 2013/07/26 19:29:27; author: amitdalal; state: Exp; lines: +3 -1
initialise spinlock_t my_lock in header file
./
—————————-
revision 1.7
date: 2013/07/26 00:38:59; author: amitdalal; state: Exp; lines: +3 -3
define macro for complition in header.h
another way is to define the complition in sculldev
—————————-
revision 1.6
date: 2013/07/25 23:25:01; author: amitdalal; state: Exp; lines: +9 -3
include struct semaphore rsem and wsem in sculldev
—————————-
revision 1.5
date: 2013/07/22 22:12:52; author: amitdalal; state: Exp; lines: +3 -1
defined header file for semaphore in kernel level
define semaphore in Sculldev structure
—————————-
revision 1.4
date: 2013/07/16 23:38:48; author: amitdalal; state: Exp; lines: +7 -7
include prototype of llseek
define llseek in file operation
—————————-
revision 1.3
date: 2013/07/15 21:53:32; author: amitdalal; state: Exp; lines: +5 -2
give prototype of llseek
define it in file operation
—————————-
revision 1.2
date: 2013/07/11 17:39:26; author: amitdalal; state: Exp; lines: +5 -5
remove init and cleanup prototype
—————————-
revision 1.1
date: 2013/07/10 21:25:25; author: amitdalal; state: Exp;
Initial revision
=============================================================================