RCS file: RCS/header.h,v
Working file: header.h
head: 3.14
locks: strict
root: 1.14
access list:
symbolic names:
keyword substitution: kv
total revisions: 14; selected revisions: 14
description:
This is the base header file for our Project Character Device Driver
‘
Included header linux/kernel.h
Included header linux/module.h
implemented Macros MODULE_LICENSE and MODULE_AUTHOR
defined macros MAJORNO and DEVNAME
defined macro DEBUG
—————————-
revision 1.14 locked by: root;
date: 2014/12/15 02:23:32; author: root; state: Exp; lines: +1 -0
declared heaader linux/completion.h
—————————-
revision 1.13
date: 2014/12/14 20:23:07; author: root; state: Exp; lines: +1 -0
included header mutex.h
—————————-
revision 1.12
date: 2014/12/14 15:26:42; author: root; state: Exp; lines: +1 -0
included header linux/semaphore.h
—————————-
revision 1.11
date: 2014/12/12 08:32:40; author: root; state: Exp; lines: +1 -0
included header linux/uaccess.h
—————————-
revision 1.10
date: 2014/12/04 11:06:13; author: root; state: Exp; lines: +19 -0
defined macros QUANTUMSIZE,QSETSIZE,DEVICESIZE,DATASIZE
—————————-
revision 1.9
date: 2014/11/30 09:44:19; author: root; state: Exp; lines: +1 -0
included header linux/cdev.h
—————————-
revision 1.8
date: 2014/11/29 06:11:43; author: root; state: Exp; lines: +1 -1
slab.h corrected to linux/slab.h
—————————-
revision 1.7
date: 2014/11/29 05:59:49; author: root; state: Exp; lines: +1 -0
included headerfile slab.h
—————————-
revision 1.6
date: 2014/11/28 03:58:27; author: root; state: Exp; lines: +1 -1
the expansion of macro COUNT was updated
—————————-
revision 1.5
date: 2014/11/28 03:32:38; author: root; state: Exp; lines: +1 -0
included header linux/kdev_t.h
—————————-
revision 1.4
date: 2014/11/28 01:30:48; author: root; state: Exp; lines: +1 -0
included header moduleparam.h
—————————-
revision 1.3
date: 2014/11/27 09:39:22; author: root; state: Exp; lines: +2 -1
defined macro MINORNO and COUNT
—————————-
revision 1.2
date: 2014/11/27 08:01:36; author: root; state: Exp; lines: +2 -1
included header linux/init.h
included header file linux/fs.h
—————————-
revision 1.1
date: 2014/11/27 06:11:01; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: RCS/init.c,v
Working file: init.c
head: 1.42
branch:
locks: strict
root: 1.42
access list:
symbolic names:
keyword substitution: kv
total revisions: 42; selected revisions: 42
description:
This is the Initialization program for device module
‘
defined initialization function
Registering the driver using register_chrdev
initialized module using module_init
—————————-
revision 1.42 locked by: root;
date: 2014/12/17 03:45:35; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.41
date: 2014/12/15 02:25:29; author: root; state: Exp; lines: +2 -1
intialized comp with init_completion()
—————————-
revision 1.40
date: 2014/12/14 20:23:57; author: root; state: Exp; lines: +3 -2
initialized mutex with mutex_init()
—————————-
revision 1.39
date: 2014/12/14 15:27:43; author: root; state: Exp; lines: +4 -1
implemented sema_init() to initialize the semaphore
—————————-
revision 1.38
date: 2014/12/09 18:04:41; author: root; state: Exp; lines: +6 -6
corrected
—————————-
revision 1.37
date: 2014/12/09 17:51:00; author: root; state: Exp; lines: +2 -2
corrected
—————————-
revision 1.36
date: 2014/12/04 11:07:33; author: root; state: Exp; lines: +8 -3
defined variable qntm_s,qset_s,dev_s,data_s
and gave value to them
—————————-
revision 1.35
date: 2014/12/03 15:23:14; author: root; state: Exp; lines: +1 -1
declared local variable lv
—————————-
revision 1.34
date: 2014/12/03 15:21:39; author: root; state: Exp; lines: +38 -28
no of devices gave in run time as module parameter
—————————-
revision 1.33
date: 2014/12/02 04:12:28; author: root; state: Exp; lines: +4 -3
loaded the valu of dev into sculldev->c-dev.dev
—————————-
revision 1.32
date: 2014/12/01 18:42:59; author: root; state: Exp; lines: +2 -2
checking
—————————-
revision 1.31
date: 2014/12/01 18:30:16; author: root; state: Exp; lines: +1 -1
checking
—————————-
revision 1.30
date: 2014/12/01 18:28:15; author: root; state: Exp; lines: +1 -1
cheking
—————————-
revision 1.29
date: 2014/12/01 18:06:40; author: root; state: Exp; lines: +2 -2
corrected
—————————-
revision 1.28
date: 2014/12/01 18:03:22; author: root; state: Exp; lines: +4 -4
corrected
—————————-
revision 1.27
date: 2014/12/01 17:54:55; author: root; state: Exp; lines: +47 -17
included header file_opr.h
implemented cdev_init and cdev_add
—————————-
revision 1.26
date: 2014/12/01 15:57:13; author: root; state: Exp; lines: +5 -19
removed register_chrdev_region
COUNT is changed to nod
—————————-
revision 1.25
date: 2014/12/01 15:40:56; author: root; state: Exp; lines: +1 -1
the static int nod changed to int nod
—————————-
revision 1.24
date: 2014/12/01 15:26:14; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.23
date: 2014/12/01 15:22:09; author: root; state: Exp; lines: +6 -1
checked the macro __func__ and __FILE__
—————————-
revision 1.22
date: 2014/11/29 06:25:30; author: root; state: Exp; lines: +45 -39
checking
—————————-
revision 1.21
date: 2014/11/29 06:12:51; author: root; state: Exp; lines: +1 -1
local variable i was declared
—————————-
revision 1.20
date: 2014/11/29 06:04:30; author: root; state: Exp; lines: +14 -2
defined structure pointer variable sculldev
allocated memory for sculldev pointer using kmalloc
clear the memory of sculldev by filling null using memset
—————————-
revision 1.19
date: 2014/11/29 03:52:43; author: root; state: Exp; lines: +2 -2
checking
—————————-
revision 1.18
date: 2014/11/28 04:06:08; author: root; state: Exp; lines: +1 -1
checking
—————————-
revision 1.17
date: 2014/11/28 04:03:24; author: root; state: Exp; lines: +1 -1
checking
—————————-
revision 1.16
date: 2014/11/28 03:52:35; author: root; state: Exp; lines: +3 -3
correcting variable name nodi to nod
—————————-
revision 1.15
date: 2014/11/28 03:50:54; author: root; state: Exp; lines: +4 -0
checking for re registration
—————————-
revision 1.14
date: 2014/11/28 03:40:59; author: root; state: Exp; lines: +1 -0
given alias
—————————-
revision 1.13
date: 2014/11/28 03:39:18; author: root; state: Exp; lines: +1 -1
corrected majorno in MKDEV
—————————-
revision 1.12
date: 2014/11/28 03:33:12; author: root; state: Exp; lines: +32 -13
implemented MKDEV macro
Implemented register_chrdev_region() for checking the re registration attempt for our driver
—————————-
revision 1.11
date: 2014/11/28 02:07:02; author: root; state: Exp; lines: +2 -1
module_param implemented before init function
—————————-
revision 1.10
date: 2014/11/28 02:00:18; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.9
date: 2014/11/28 01:57:01; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2014/11/28 01:39:38; author: root; state: Exp; lines: +2 -2
removed defination of variable nod becase we give value of nod with the insmod command
printf was corrected to printk
—————————-
revision 1.7
date: 2014/11/28 01:32:07; author: root; state: Exp; lines: +5 -1
defined nod variable
implemented macro module_init to fetch module parameters and cheacked
—————————-
revision 1.6
date: 2014/11/27 10:34:55; author: root; state: Exp; lines: +1 -1
defined minorno
—————————-
revision 1.5
date: 2014/11/27 10:32:35; author: root; state: Exp; lines: +2 -2
MAJORNO and MINORNO corrected to MAJOR and MINOR
—————————-
revision 1.4
date: 2014/11/27 10:21:08; author: root; state: Exp; lines: +6 -1
extract majorno and minorno from dev_t dev using macro MAJORNO and MINORNO respectively
minorno was defined
printed majorno and minorno
—————————-
revision 1.3
date: 2014/11/27 09:51:08; author: root; state: Exp; lines: +1 -1
corrected type of dev
—————————-
revision 1.2
date: 2014/11/27 09:41:42; author: root; state: Exp; lines: +19 -7
removed struct file_operations
removed register_chrdev()
defined dev
registering module using alloc_chrdev_region
returned the value of alloc_chrdev_region to variable ret
And checked registration successful or not
—————————-
revision 1.1
date: 2014/11/27 06:15:26; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: RCS/exit.c,v
Working file: exit.c
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
This is clean up module for devices
‘
defined clean_up function
unregistering the driver using unregister_chrdev
cleaning up the module using module_exit
—————————-
revision 1.13 locked by: root;
date: 2014/12/09 18:05:46; author: root; state: Exp; lines: +2 -1
declared lv
—————————-
revision 1.12
date: 2014/12/09 18:04:47; author: root; state: Exp; lines: +2 -2
corrected
—————————-
revision 1.11
date: 2014/12/09 17:51:05; author: root; state: Exp; lines: +1 -1
corrected
—————————-
revision 1.10
date: 2014/12/04 11:38:18; author: root; state: Exp; lines: +1 -1
corrected
—————————-
revision 1.9
date: 2014/12/01 17:57:34; author: root; state: Exp; lines: +6 -0
iimplemented cdev_del()
—————————-
revision 1.8
date: 2014/12/01 16:18:00; author: root; state: Exp; lines: +1 -1
checking sizeof sculldev after kfree
—————————-
revision 1.7
date: 2014/12/01 16:15:58; author: root; state: Exp; lines: +6 -1
checking
—————————-
revision 1.6
date: 2014/12/01 16:11:28; author: root; state: Exp; lines: +20 -1
sculldev pointer was checked for null after kfree()
—————————-
revision 1.5
date: 2014/12/01 15:46:14; author: root; state: Exp; lines: +1 -1
checked for the value of nod
—————————-
revision 1.4
date: 2014/12/01 15:33:34; author: root; state: Exp; lines: +1 -1
COUNT changed by nod
—————————-
revision 1.3
date: 2014/11/29 06:09:41; author: root; state: Exp; lines: +1 -0
memory of sculldev freed by kfree()
—————————-
revision 1.2
date: 2014/11/27 09:46:50; author: root; state: Exp; lines: +3 -2
removed unregister_chrdev()
unregistering module by unregister_chrdev_region()
—————————-
revision 1.1
date: 2014/11/27 06:18:46; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: RCS/read_dev.c,v
Working file: read_dev.c
head: 1.12
branch:
locks: strict
root: 1.12
access list:
symbolic names:
keyword substitution: kv
total revisions: 12; selected revisions: 12
description:
This is driver routine for read
—————————-
revision 1.12 locked by: root;
date: 2014/12/17 03:50:38; author: root; state: Exp; lines: +5 -2
*** empty log message ***
—————————-
revision 1.11
date: 2014/12/15 02:28:04; author: root; state: Exp; lines: +1 -1
corrected argument of complete()
—————————-
revision 1.10
date: 2014/12/15 02:26:51; author: root; state: Exp; lines: +6 -4
implemented complete()
—————————-
revision 1.9
date: 2014/12/14 20:25:31; author: root; state: Exp; lines: +7 -3
unlocked the mutex by mutex_unlock()
—————————-
revision 1.8
date: 2014/12/14 16:53:06; author: root; state: Exp; lines: +4 -1
checking
—————————-
revision 1.7
date: 2014/12/14 15:30:39; author: root; state: Exp; lines: +1 -1
corrected the argument of up
—————————-
revision 1.6
date: 2014/12/14 15:29:11; author: root; state: Exp; lines: +1 -1
implemented up() to unlock the semaphore
—————————-
revision 1.5
date: 2014/12/14 15:12:35; author: root; state: Exp; lines: +1 -1
checking
—————————-
revision 1.4
date: 2014/12/14 05:42:18; author: root; state: Exp; lines: +1 -1
checking
—————————-
revision 1.3
date: 2014/12/14 05:05:10; author: root; state: Exp; lines: +30 -0
implemented copy_to_user
—————————-
revision 1.2
date: 2014/12/03 20:00:19; author: root; state: Exp; lines: +2 -2
corrected
type casted size to int
—————————-
revision 1.1
date: 2014/12/03 19:34:35; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: RCS/write_dev.c,v
Working file: write_dev.c
head: 1.20
branch:
locks: strict
root: 1.20
access list:
symbolic names:
keyword substitution: kv
total revisions: 20; selected revisions: 20
description:
This is driver routine for write
—————————-
revision 1.20 locked by: root;
date: 2014/12/17 03:50:32; author: root; state: Exp; lines: +6 -4
*** empty log message ***
—————————-
revision 1.19
date: 2014/12/15 02:26:21; author: root; state: Exp; lines: +4 -2
implemented wait_for_completion()
—————————-
revision 1.18
date: 2014/12/14 20:25:04; author: root; state: Exp; lines: +8 -5
locked the mutex by mutex_lock()
—————————-
revision 1.17
date: 2014/12/14 16:52:57; author: root; state: Exp; lines: +6 -3
checking
—————————-
revision 1.16
date: 2014/12/14 15:51:34; author: root; state: Exp; lines: +3 -2
return value of down_interruptible() captured in sem_ret variable
—————————-
revision 1.15
date: 2014/12/14 15:28:14; author: root; state: Exp; lines: +2 -0
implemented down_interruptible() to lock the semaphore
—————————-
revision 1.14
date: 2014/12/14 05:52:41; author: root; state: Exp; lines: +2 -2
checking
—————————-
revision 1.13
date: 2014/12/14 05:11:57; author: root; state: Exp; lines: +3 -1
quantum declared as global variable
—————————-
revision 1.12
date: 2014/12/14 05:05:00; author: root; state: Exp; lines: +62 -10
corrected
—————————-
revision 1.11
date: 2014/12/12 08:33:49; author: root; state: Exp; lines: +36 -7
implemented function write_in_quantum
—————————-
revision 1.10
date: 2014/12/09 20:34:31; author: root; state: Exp; lines: +3 -3
corrected
—————————-
revision 1.9
date: 2014/12/09 20:00:59; author: root; state: Exp; lines: +73 -9
implemented create_quantum to create required number of quantum
—————————-
revision 1.8
date: 2014/12/09 19:00:50; author: root; state: Exp; lines: +1 -1
corrected syntax error
—————————-
revision 1.7
date: 2014/12/09 18:58:58; author: root; state: Exp; lines: +2 -2
corrected variable
—————————-
revision 1.6
date: 2014/12/09 18:56:36; author: root; state: Exp; lines: +49 -4
imlemented create_qsetarr to create qsetarray
—————————-
revision 1.5
date: 2014/12/09 17:48:30; author: root; state: Exp; lines: +4 -4
corrected prototype of create_qset
—————————-
revision 1.4
date: 2014/12/09 17:46:08; author: root; state: Exp; lines: +4 -2
corrected
—————————-
revision 1.3
date: 2014/12/09 17:35:06; author: root; state: Exp; lines: +93 -3
calculated no of scullqset required
implemented create_qset()
—————————-
revision 1.2
date: 2014/12/03 19:59:46; author: root; state: Exp; lines: +1 -1
type casted size to int
—————————-
revision 1.1
date: 2014/12/03 19:33:55; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: RCS/file_opr.h,v
Working file: file_opr.h
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This is the header file for file_operations
—————————-
revision 1.4 locked by: root;
date: 2014/12/03 19:38:14; author: root; state: Exp; lines: +3 -2
write system call mapped to write_dev routine
read system call mapped to read_dev routine
—————————-
revision 1.3
date: 2014/12/02 01:07:20; author: root; state: Exp; lines: +3 -2
open system call mapped to driver routine
open_dev and release(close) system call mapped to release_dev routine
—————————-
revision 1.2
date: 2014/12/01 18:03:07; author: root; state: Exp; lines: +1 -0
corrected
—————————-
revision 1.1
date: 2014/12/01 17:54:55; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: RCS/trim_dev.c,v
Working file: trim_dev.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
This is a program to trim the length of the device to 0
—————————-
revision 1.4 locked by: root;
date: 2014/12/17 03:48:48; author: root; state: Exp; lines: +1 -1
added second argument of type struct file
—————————-
revision 1.3
date: 2014/12/14 05:04:49; author: root; state: Exp; lines: +1 -1
checking
—————————-
revision 1.2
date: 2014/12/03 17:21:30; author: root; state: Exp; lines: +1 -1
checking
—————————-
revision 1.1
date: 2014/12/03 16:51:42; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: RCS/release_dev.c,v
Working file: release_dev.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This is a driver routine to map system call release(close)
—————————-
revision 1.2 locked by: root;
date: 2014/12/14 20:24:50; author: root; state: Exp; lines: +3 -0
checking
—————————-
revision 1.1
date: 2014/12/02 01:21:14; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: RCS/open_dev.c,v
Working file: open_dev.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
This is a routine to map open system call
—————————-
revision 1.9 locked by: root;
date: 2014/12/17 03:46:11; author: root; state: Exp; lines: +2 -1
added filep in argument of trim_dev calling
—————————-
revision 1.8
date: 2014/12/14 20:24:26; author: root; state: Exp; lines: +3 -6
cheking
—————————-
revision 1.7
date: 2014/12/14 17:09:17; author: root; state: Exp; lines: +2 -2
corrected reti to ret
—————————-
revision 1.6
date: 2014/12/14 17:08:01; author: root; state: Exp; lines: +2 -2
declared local variable sem-ret
—————————-
revision 1.5
date: 2014/12/14 17:06:21; author: root; state: Exp; lines: +7 -1
semaphore implemented in open_dev
—————————-
revision 1.4
date: 2014/12/03 17:20:29; author: root; state: Exp; lines: +1 -0
corrected
—————————-
revision 1.3
date: 2014/12/03 17:14:34; author: root; state: Exp; lines: +11 -2
checked for O_WRONLY or not
—————————-
revision 1.2
date: 2014/12/02 01:23:38; author: root; state: Exp; lines: +2 -1
return statement included
—————————-
revision 1.1
date: 2014/12/02 01:21:14; author: root; state: Exp;
Initial revision
=============================================================================