This site works best with JavaScript enabled
Sign In
Discussions
Activity
Sign In
All
Pravjot Sir Classes
Discussion Forum for classes taken by Pravjot Sir.
Pravjot Sir Classes
Batch-91 (Project -> 05 Character Driver)
ankitkhasa543
April 2017
RCS file: create_scull.c,v
Working file: create_scull.c
head: 1.10
branch:
locks: strict
root: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
----------------------------
revision 1.10 locked by: root;
date: 2017/04/10 00:46:30; author: root; state: Exp; lines: +2 -4
remove error
----------------------------
revision 1.9
date: 2017/04/10 00:04:42; author: root; state: Exp; lines: +5 -4
debugging
----------------------------
revision 1.8
date: 2017/04/09 23:59:07; author: root; state: Exp; lines: +2 -2
debugging
----------------------------
revision 1.7
date: 2017/04/09 23:55:26; author: root; state: Exp; lines: +4 -4
*** empty log message ***
----------------------------
revision 1.6
date: 2017/04/09 23:51:26; author: root; state: Exp; lines: +4 -3
removing error
----------------------------
revision 1.5
date: 2017/04/09 23:34:29; author: root; state: Exp; lines: +3 -3
debugging the code
----------------------------
revision 1.4
date: 2017/04/09 23:30:32; author: root; state: Exp; lines: +2 -2
removing error
----------------------------
revision 1.3
date: 2017/04/09 23:29:17; author: root; state: Exp; lines: +2 -0
Debugging
----------------------------
revision 1.2
date: 2017/04/09 23:23:47; author: root; state: Exp; lines: +87 -2
Create a scull for the write operation
SCULL: simple character utility for loading localities
----------------------------
revision 1.1
date: 2017/04/09 21:35:23; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: exit_func.c,v
Working file: exit_func.c
head: 1.17
branch:
locks: strict
root: 1.17
access list:
symbolic names:
keyword substitution: kv
total revisions: 17; selected revisions: 17
description:
Exit function is used to remove the driver from the kernel
----------------------------
revision 1.17 locked by: root;
date: 2017/04/08 21:14:23; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.16
date: 2017/04/08 20:33:28; author: root; state: Exp; lines: +1 -1
remove error
----------------------------
revision 1.15
date: 2017/04/08 20:32:42; author: root; state: Exp; lines: +5 -1
*** empty log message ***
----------------------------
revision 1.14
date: 2017/04/08 17:27:53; author: root; state: Exp; lines: +3 -3
remove errors
----------------------------
revision 1.13
date: 2017/04/02 21:12:08; author: root; state: Exp; lines: +3 -0
add prototype.h file
----------------------------
revision 1.12
date: 2017/03/29 21:51:25; author: root; state: Exp; lines: +3 -0
deleting the sev structure
----------------------------
revision 1.11
date: 2017/03/29 19:22:07; author: root; state: Exp; lines: +3 -0
Use kfree() system call to free the allocated memory for SCULL
----------------------------
revision 1.10
date: 2017/03/23 23:07:07; author: root; state: Exp; lines: +3 -0
remove error
----------------------------
revision 1.9
date: 2017/03/23 21:57:00; author: root; state: Exp; lines: +1 -1
Add some new comments
----------------------------
revision 1.8
date: 2017/03/21 19:16:29; author: root; state: Exp; lines: +1 -1
We are using unregister_chrdev_region() system call for remove the driver
----------------------------
revision 1.7
date: 2017/03/21 18:15:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2017/03/21 18:10:56; author: root; state: Exp; lines: +4 -0
Using unregister_chrdev() system call to remove the entry of device from device table
----------------------------
revision 1.5
date: 2017/03/21 18:00:33; author: root; state: Exp; lines: +0 -3
Remove structure.h file
----------------------------
revision 1.4
date: 2017/03/21 17:27:33; author: root; state: Exp; lines: +1 -1
add extern_var.h file
----------------------------
revision 1.3
date: 2017/03/21 17:23:44; author: root; state: Exp; lines: +15 -0
did all new .h file
like: structure.h, macro.h, extern_var.h
----------------------------
revision 1.2
date: 2017/03/21 16:09:25; author: root; state: Exp; lines: +1 -1
Using module_exit(exit_func);
For running exit function
----------------------------
revision 1.1
date: 2017/03/21 16:02:38; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: extern_var.h,v
Working file: extern_var.h
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
All extern variable declaration is inside this extern_var.h file
----------------------------
revision 1.8 locked by: root;
date: 2017/04/02 20:35:33; author: root; state: Exp; lines: +1 -0
new extern variable nod
----------------------------
revision 1.7
date: 2017/04/02 19:55:22; author: root; state: Exp; lines: +4 -1
add some new external variable like data_size
----------------------------
revision 1.6
date: 2017/03/29 21:46:11; author: root; state: Exp; lines: +1 -1
new major and minor number is added
----------------------------
revision 1.5
date: 2017/03/23 23:06:10; author: root; state: Exp; lines: +2 -0
remove error
.\
----------------------------
revision 1.4
date: 2017/03/23 22:58:59; author: root; state: Exp; lines: +1 -0
New variable of data type Dav *dev
----------------------------
revision 1.3
date: 2017/03/23 22:08:05; author: root; state: Exp; lines: +1 -0
a new extern variable is defined for minor no
----------------------------
revision 1.2
date: 2017/03/21 19:11:23; author: root; state: Exp; lines: +1 -0
New extern variable is taken of type dev_t
----------------------------
revision 1.1
date: 2017/03/21 17:15:11; author: root; state: Exp;
Initial revision
=============================================================================
ankitkhasa543
April 2017
RCS file: f_operation.h,v
Working file: f_operation.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
----------------------------
revision 1.5 locked by: root;
date: 2017/04/09 17:33:37; author: root; state: Exp; lines: +3 -3
remove error
----------------------------
revision 1.4
date: 2017/04/09 16:48:06; author: root; state: Exp; lines: +4 -2
mapping of operation function pointer
like
open: opendev
close: closedev
write: wreitedev
read: readdev
date: 2017/04/02 23:58:16; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: header.h,v
Working file: header.h
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
All header files which we used in this driver are initialize inside this header.h file
Now we have two header file:
#include<linux/init.h>
#include<linux/moduh>
----------------------------
revision 1.7 locked by: root;
date: 2017/04/10 00:46:10; author: root; state: Exp; lines: +1 -0
add a new header file
linux/uaccess.h
----------------------------
revision 1.6
date: 2017/04/08 17:25:57; author: root; state: Exp; lines: +1 -0
add new header file
linux/kernel.h
----------------------------
revision 1.5
date: 2017/04/02 20:35:55; author: root; state: Exp; lines: +1 -0
new header file linux/moduleparam.h
----------------------------
revision 1.4
date: 2017/03/29 21:50:52; author: root; state: Exp; lines: +1 -0
new header file linux/cdev.h
----------------------------
revision 1.3
date: 2017/03/23 22:59:51; author: root; state: Exp; lines: +1 -0
New header file
<linux/slab.h>
----------------------------
revision 1.2
date: 2017/03/21 17:58:59; author: root; state: Exp; lines: +1 -0
Add header file for register_chrdev
----------------------------
revision 1.1
date: 2017/03/21 16:00:13; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: init_func.c,v
Working file: init_func.c
head: 1.29
branch:
locks: strict
root: 1.29
access list:
symbolic names:
keyword substitution: kv
total revisions: 29; selected revisions: 29
description:
This is initialization function
Which indicate that driver is starting from this function
----------------------------
revision 1.29 locked by: root;
date: 2017/04/08 21:52:24; author: root; state: Exp; lines: +1 -1
change cdev_init()
----------------------------
revision 1.27
date: 2017/04/08 19:37:37; author: root; state: Exp; lines: +6 -6
remove error
----------------------------
revision 1.26
date: 2017/04/08 19:34:52; author: root; state: Exp; lines: +11 -7
initializing the dev
----------------------------
revision 1.25
date: 2017/04/08 17:28:10; author: root; state: Exp; lines: +6 -6
remove errors
----------------------------
revision 1.24
date: 2017/04/02 23:58:19; author: root; state: Exp; lines: +1 -0
revision 1.23
date: 2017/04/02 21:19:32; author: root; state: Exp; lines: +2 -0
testing
----------------------------
revision 1.22
date: 2017/04/02 21:12:24; author: root; state: Exp; lines: +6 -0
add prototype.h
and use of EXPORT_SYMBOL() macro
----------------------------
revision 1.21
date: 2017/04/02 20:36:19; author: root; state: Exp; lines: +5 -4
remove error
----------------------------
revision 1.20
date: 2017/04/02 19:57:14; author: root; state: Exp; lines: +22 -4
use module_param() macro
----------------------------
revision 1.19
date: 2017/04/02 17:27:36; author: root; state: Exp; lines: +1 -1
printing the minor number from the structure cdev
----------------------------
revision 1.18
date: 2017/04/02 17:21:23; author: root; state: Exp; lines: +5 -4
use of MKDEV()
----------------------------
revision 1.17
date: 2017/03/29 21:55:35; author: root; state: Exp; lines: +1 -1
removing error
----------------------------
revision 1.16
date: 2017/03/29 21:52:26; author: root; state: Exp; lines: +7 -1
Initialize and add device specific structure "struct cdev" using cdev_init() and cdev_add()
----------------------------
revision 1.15
date: 2017/03/29 19:23:37; author: root; state: Exp; lines: +3 -0
using memset() system call flush the garbage
----------------------------
revision 1.14
date: 2017/03/23 23:00:48; author: root; state: Exp; lines: +28 -12
use of kmalloc for memory allocation for *dev
----------------------------
revision 1.13
date: 2017/03/23 22:39:38; author: root; state: Exp; lines: +2 -2
remove error........
----------------------------
revision 1.12
date: 2017/03/23 22:32:50; author: root; state: Exp; lines: +1 -1
remove error
----------------------------
revision 1.11
date: 2017/03/23 22:31:29; author: root; state: Exp; lines: +16 -1
use register_chardev_region() for reregistration of the driver
----------------------------
revision 1.10
date: 2017/03/23 22:10:49; author: root; state: Exp; lines: +4 -4
remove some error
----------------------------
revision 1.9
date: 2017/03/23 22:09:09; author: root; state: Exp; lines: +9 -2
Using MAJOR() MINOR() macro
----------------------------
revision 1.8
date: 2017/03/23 21:57:20; author: root; state: Exp; lines: +9 -6
Add some new comments
----------------------------
revision 1.7
date: 2017/03/21 19:25:33; author: root; state: Exp; lines: +1 -1
put \n in last printk() statement
----------------------------
revision 1.6
date: 2017/03/21 19:18:35; author: root; state: Exp; lines: +6 -4
alloc_chrdev_region() system call use to insert the driver into kernel
----------------------------
revision 1.5
date: 2017/03/21 18:15:26; author: root; state: Exp; lines: +2 -2
*** empty log message ***
----------------------------
revision 1.4
date: 2017/03/21 18:00:58; author: root; state: Exp; lines: +1 -1
Give file_opers as argument
----------------------------
revision 1.3
date: 2017/03/21 17:27:55; author: root; state: Exp; lines: +1 -1
add extern_var.h file
----------------------------
revision 1.2
date: 2017/03/21 17:25:12; author: root; state: Exp; lines: +38 -3
Registering the driver into the driver table using register_chrdev() system call\
----------------------------
revision 1.1
date: 2017/03/21 16:03:46; author: root; state: Exp;
Initial revision
=============================================================================
ankitkhasa543
April 2017
RCS file: macro.h,v
Working file: macro.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
All user defined macros are given inside this macro.h file
----------------------------
revision 1.5 locked by: root;
date: 2017/04/09 21:35:19; author: root; state: Exp; lines: +2 -2
*** empty log message ***
----------------------------
revision 1.4
date: 2017/04/08 21:14:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.3
date: 2017/04/02 19:56:48; author: root; state: Exp; lines: +16 -0
take all new extern variables macro
----------------------------
revision 1.2
date: 2017/03/21 19:14:45; author: root; state: Exp; lines: +5 -1
two new macro:
NO_OF_DEVICES
MINER_NO
----------------------------
revision 1.1
date: 2017/03/21 17:21:58; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: mymodule.c,v
Working file: mymodule.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
New modules file
----------------------------
revision 1.2 locked by: root;
date: 2017/04/08 17:28:24; author: root; state: Exp; lines: +3 -3
remove errors
----------------------------
revision 1.1
date: 2017/04/02 21:13:11; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: opendev.c,v
Working file: opendev.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
----------------------------
revision 1.5 locked by: root;
date: 2017/04/08 18:41:58; author: root; state: Exp; lines: +1 -1
---------------------------
revision 1.3
date: 2017/04/08 18:31:51; author: root; state: Exp; lines: +1 -1
remove error
----------------------------
revision 1.2
date: 2017/04/08 17:28:33; author: root; state: Exp; lines: +25 -3
Use container_of macro
----------------------------
revision 1.1
date: 2017/04/02 23:58:20; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: prototype.h,v
Working file: prototype.h
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
All function declaration is given inside this .h file
----------------------------
revision 1.7 locked by: root;
date: 2017/04/09 23:23:05; author: root; state: Exp; lines: +1 -1
add a new function declaration
create_scull()
----------------------------
revision 1.6
date: 2017/04/09 21:35:22; author: root; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.5
date: 2017/04/09 17:33:53; author: root; state: Exp; lines: +2 -2
remove error
----------------------------
revision 1.4
date: 2017/04/09 17:00:58; author: root; state: Exp; lines: +2 -0
iclaration of two new function
writedev()
readev()
----------------------------
revision 1.3
date: 2017/04/08 17:27:20; author: root; state: Exp; lines: +1 -0
Add a new function declaration trim()
----------------------------
revision 1.2
date: 2017/04/02 23:58:19; author: root; state: Exp; lines: +2 -0
*** empty log message ***
----------------------------
revision 1.1
date: 2017/04/02 21:11:40; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: readdev.c,v
Working file: readdev.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
Use to read the data from the device mainly used in keyboard
----------------------------
revision 1.2 locked by: root;
date: 2017/04/09 17:33:55; author: root; state: Exp; lines: +1 -1
remove error
----------------------------
revision 1.1
date: 2017/04/09 17:02:36; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: releasedev.c,v
Working file: releasedev.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
----------------------------
revision 1.2 locked by: root;
date: 2017/04/08 17:29:05; author: root; state: Exp; lines: +3 -3
remove errors
----------------------------
revision 1.1
date: 2017/04/02 23:58:21; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: structure.h,v
Working file: structure.h
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
Structures definition and their declaration is given inside this structure.h file
----------------------------
revision 1.8 locked by: root;
date: 2017/04/09 23:23:31; author: root; state: Exp; lines: +1 -1
take qset *first
----------------------------
revision 1.7
date: 2017/04/09 21:35:22; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2017/04/02 23:58:19; author: root; state: Exp; lines: +0 -10
*** empty log message ***
----------------------------
revision 1.5
date: 2017/03/29 21:51:17; author: root; state: Exp; lines: +5 -0
*** empty log message ***
----------------------------
revision 1.4
date: 2017/03/23 23:06:19; author: root; state: Exp; lines: +10 -8
remove :: const struct file_operations file_opers
----------------------------
revision 1.3
date: 2017/03/23 23:00:32; author: root; state: Exp; lines: +14 -0
SCULL structure
----------------------------
revision 1.2
date: 2017/03/21 17:59:38; author: root; state: Exp; lines: +1 -1
A const struct file_operation variable is declarer
----------------------------
revision 1.1
date: 2017/03/21 17:22:42; author: root; state: Exp;
Initial revision
=============================================================================
ankitkhasa543
April 2017
CS file: trimdev.c,v
Working file: trimdev.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
Use to remove the garbage from the node
----------------------------
revision 1.1 locked by: root;
date: 2017/04/08 17:29:14; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: writedev.c,v
Working file: writedev.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
Send the data to the devic3
----------------------------
revision 1.5 locked by: root;
date: 2017/04/10 00:46:40; author: root; state: Exp; lines: +28 -2
use of
copy_from_user() macro
to read the data from user
----------------------------
revision 1.4
date: 2017/04/09 23:25:28; author: root; state: Exp; lines: +1 -2
Write operation
----------------------------
revision 1.3
date: 2017/04/09 21:35:24; author: root; state: Exp; lines: +14 -3
*** empty log message ***
----------------------------
revision 1.2
date: 2017/04/09 17:33:58; author: root; state: Exp; lines: +1 -1
remove error
----------------------------
revision 1.1
date: 2017/04/09 17:03:45; author: root; state: Exp;
Initial revision
=============================================================================
682,1 Bot
rohitjangra096
April 2017
Project:-05 character_driver
logfile of character driver:
RCS file: clean_up.c,v
Working file: clean_up.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
clean_up function contains system calls to unregister the driver.
----------------------------
revision 1.3 locked by: root;
date: 2017/04/09 09:30:27; author: root; state: Exp; lines: +5 -5
*** empty log message ***
----------------------------
revision 1.2
date: 2017/04/09 09:02:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.1
date: 2017/04/09 04:26:40; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: create_scull.c,v
Working file: create_scull.c
head: 1.18
branch:
locks: strict
root: 1.18
access list:
symbolic names:
keyword substitution: kv
total revisions: 18; selected revisions: 18
description:
----------------------------
revision 1.18 locked by: root;
date: 2017/04/11 09:42:25; author: root; state: Exp; lines: +2 -3
*** empty log message ***
----------------------------
revision 1.17
date: 2017/04/11 05:56:53; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.16
date: 2017/04/11 05:26:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.15
date: 2017/04/11 05:22:59; author: root; state: Exp; lines: +2 -2
*** empty log message ***
----------------------------
revision 1.14
date: 2017/04/11 05:18:25; author: root; state: Exp; lines: +6 -0
*** empty log message ***
----------------------------
revision 1.13
date: 2017/04/11 05:11:50; author: root; state: Exp; lines: +3 -3
*** empty log message ***
----------------------------
revision 1.12
date: 2017/04/11 04:54:58; author: root; state: Exp; lines: +6 -5
*** empty log message ***
----------------------------
revision 1.11
date: 2017/04/10 12:57:40; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.10
date: 2017/04/10 12:00:22; author: root; state: Exp; lines: +3 -3
*** empty log message ***
----------------------------
revision 1.9
date: 2017/04/10 11:35:06; author: root; state: Exp; lines: +46 -1
*** empty log message ***
----------------------------
revision 1.8
date: 2017/04/10 09:33:06; author: root; state: Exp; lines: +40 -5
*** empty log message ***
----------------------------
revision 1.7
date: 2017/04/09 11:26:33; author: root; state: Exp; lines: +2 -0
*** empty log message ***
----------------------------
revision 1.6
date: 2017/04/09 10:37:58; author: root; state: Exp; lines: +1 -2
*** empty log message ***
----------------------------
revision 1.5
date: 2017/04/09 10:10:28; author: root; state: Exp; lines: +2 -4
*** empty log message ***
----------------------------
revision 1.4
date: 2017/04/09 09:37:22; author: root; state: Exp; lines: +11 -2
*** empty log message ***
----------------------------
revision 1.3
date: 2017/04/09 08:54:53; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.2
date: 2017/04/09 05:28:13; author: root; state: Exp; lines: +4 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2017/04/09 04:32:33; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: external_var.h,v
Working file: external_var.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
----------------------------
revision 1.2 locked by: root;
date: 2017/04/09 09:30:31; author: root; state: Exp; lines: +1 -1
rohitjangra096
April 2017
*** empty log message ***
----------------------------
revision 1.1
date: 2017/04/09 04:33:16; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: file_operation.h,v
Working file: file_operation.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: root;
date: 2017/04/09 04:33:17; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
----------------------------
revision 1.2 locked by: root;
date: 2017/04/10 12:57:42; author: root; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.1
date: 2017/04/09 04:33:17; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: init.c,v
Working file: init.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
----------------------------
revision 1.7 locked by: root;
date: 2017/04/10 09:33:07; author: root; state: Exp; lines: +0 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2017/04/09 10:10:30; author: root; state: Exp; lines: +1 -2
*** empty log message ***
----------------------------
revision 1.5
date: 2017/04/09 09:30:30; author: root; state: Exp; lines: +2 -1
*** empty log message ***
----------------------------
revision 1.4
date: 2017/04/09 06:23:04; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.3
date: 2017/04/09 05:53:33; author: root; state: Exp; lines: +4 -2
*** empty log message ***
----------------------------
revision 1.2
date: 2017/04/09 05:49:42; author: root; state: Exp; lines: +2 -1
,
----------------------------
revision 1.1
date: 2017/04/09 04:33:01; author: root; state: Exp;
Initial revision
=============================================================================
rohitjangra096
April 2017
RCS file: macro.h,v
Working file: macro.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
----------------------------
revision 1.5 locked by: root;
date: 2017/04/10 11:35:08; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.4
date: 2017/04/09 11:31:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.3
date: 2017/04/09 09:37:24; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.2
date: 2017/04/09 09:30:31; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2017/04/09 04:33:18; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: myModule.c,v
Working file: myModule.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: root;
date: 2017/04/09 04:33:13; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: opendev.c,v
Working file: opendev.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: root;
date: 2017/04/09 04:33:14; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: releasedev.c,v
Working file: releasedev.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: root;
date: 2017/04/09 04:33:15; author: root; state: Exp;
Initial revision
=============================================================================
rohitjangra096
April 2017
RCS file: releasedev.c,v
Working file: releasedev.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: root;
date: 2017/04/09 04:33:15; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: structure.h,v
Working file: structure.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
----------------------------
revision 1.3 locked by: root;
date: 2017/04/10 09:33:10; author: root; state: Exp; lines: +3 -3
*** empty log message ***
----------------------------
revision 1.2
date: 2017/04/09 05:28:16; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2017/04/09 04:33:18; author: root; state: Exp;
Initial revision
=============================================================================
rohitjangra096
April 2017
RCS file: trimdev.c,v
Working file: trimdev.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1 locked by: root;
date: 2017/04/09 04:33:15; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: writedev.c,v
Working file: writedev.c
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
----------------------------
revision 1.13 locked by: root;
date: 2017/04/11 05:37:07; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.12
date: 2017/04/11 04:54:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.11
date: 2017/04/11 04:26:06; author: root; state: Exp; lines: +3 -9
*** empty log message ***
----------------------------
revision 1.10
date: 2017/04/11 04:16:29; author: root; state: Exp; lines: +5 -3
*** empty log message ***
----------------------------
revision 1.9
date: 2017/04/10 13:01:56; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.8
date: 2017/04/10 12:57:41; author: root; state: Exp; lines: +21 -6
*** empty log message ***
----------------------------
revision 1.7
date: 2017/04/10 12:36:57; author: root; state: Exp; lines: +5 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2017/04/10 12:34:07; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.5
date: 2017/04/10 12:32:11; author: root; state: Exp; lines: +17 -6
*** empty log message ***
----------------------------
revision 1.4
date: 2017/04/10 12:00:24; author: root; state: Exp; lines: +6 -0
*** empty log message ***
----------------------------
revision 1.3
date: 2017/04/10 09:33:08; author: root; state: Exp; lines: +8 -1
*** empty log message ***
----------------------------
revision 1.2
date: 2017/04/09 05:28:15; author: root; state: Exp; lines: +4 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2017/04/09 04:33:15; author: root; state: Exp;
Initial revision
ankitkhasa543
April 2017
Trimming and Seeking are Done
ankitkhasa543
April 2017
Trimming:
Deallocating of already allocated memory before writing on to the SCULL
Deallocating of memory after reading the data
Seeking:
seek the file position pointer according to the origin like:
1
SEEK_SET
2
SEEK_END
3
SEEK_CUR
ankitkhasa543
April 2017
RCS file: lseekdev.c,v
Working file: lseekdev.c
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
For seeking operation
----------------------------
revision 1.6 locked by: root;
date: 2017/04/15 17:41:06; author: root; state: Exp; lines: +7 -7
removing run time error
----------------------------
revision 1.5
date: 2017/04/15 17:08:01; author: root; state: Exp; lines: +18 -5
lseekdev() is a function which is maped by the lseek system call
to perform seek operation according to the origen
----------------------------
revision 1.4
date: 2017/04/14 23:24:00; author: root; state: Exp; lines: +3 -3
removing error
----------------------------
revision 1.3
date: 2017/04/14 23:23:05; author: root; state: Exp; lines: +1 -1
Use switch statement for
SEEK_SET
SEEK_END
SEEK_CUR
----------------------------
revision 1.2
date: 2017/04/14 23:22:28; author: root; state: Exp; lines: +1 -0
remove error from if()
----------------------------
revision 1.1
date: 2017/04/14 23:21:19; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: readdev.c,v
Working file: readdev.c
head: 1.20
branch:
locks: strict
root: 1.20
access list:
symbolic names:
keyword substitution: kv
total revisions: 20; selected revisions: 20
description:
Use to read the data from the device mainly used in keybord
----------------------------
revision 1.20 locked by: root;
date: 2017/04/15 19:11:07; author: root; state: Exp; lines: +1 -1
debugger
----------------------------
revision 1.19
date: 2017/04/15 19:06:01; author: root; state: Exp; lines: +1 -1
Final testing for the seeking operation
----------------------------
revision 1.18
date: 2017/04/15 19:01:33; author: root; state: Exp; lines: +1 -1
Debugging the problems
----------------------------
revision 1.17
date: 2017/04/15 18:57:55; author: root; state: Exp; lines: +2 -6
removing errors
----------------------------
revision 1.16
date: 2017/04/15 18:52:37; author: root; state: Exp; lines: +1 -1
debugging
----------------------------
revision 1.15
date: 2017/04/15 18:40:17; author: root; state: Exp; lines: +1 -1
Debugging the program
----------------------------
revision 1.14
date: 2017/04/15 18:35:49; author: root; state: Exp; lines: +5 -8
remove temp2
/
----------------------------
revision 1.13
date: 2017/04/15 18:24:09; author: root; state: Exp; lines: +1 -1
Try to print the no of char successful write
----------------------------
revision 1.12
date: 2017/04/15 18:23:24; author: root; state: Exp; lines: +2 -1
checking for error
----------------------------
revision 1.11
date: 2017/04/15 18:13:17; author: root; state: Exp; lines: +10 -0
debugging
----------------------------
revision 1.10
date: 2017/04/15 18:02:51; author: root; state: Exp; lines: +1 -0
remove the error
----------------------------
revision 1.9
date: 2017/04/15 17:56:26; author: root; state: Exp; lines: +3 -3
put a new condition inside if(nocsr < lsize)
----------------------------
revision 1.8
date: 2017/04/15 17:47:51; author: root; state: Exp; lines: +1 -1
change the local size value to file position
----------------------------
revision 1.7
date: 2017/04/15 17:41:17; author: root; state: Exp; lines: +3 -3
removing run time error
----------------------------
revision 1.6
date: 2017/04/15 17:09:30; author: root; state: Exp; lines: +24 -3
now read dev work on the lseek operations
----------------------------
revision 1.5
date: 2017/04/14 22:09:32; author: root; state: Exp; lines: +1 -0
trimming after reading
----------------------------
revision 1.4
date: 2017/04/12 00:03:26; author: root; state: Exp; lines: +90 -6
reading the data
with using copy_to_user() micro
----------------------------
revision 1.3
date: 2017/04/11 21:47:48; author: root; state: Exp; lines: +1 -1
empty
----------------------------
revision 1.2
date: 2017/04/09 17:33:55; author: root; state: Exp; lines: +1 -1
remove error
----------------------------
revision 1.1
date: 2017/04/09 17:02:36; author: root; state: Exp;
Initial revision
=============================================================================
Add a Comment
Powered by
Vanilla
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
0
000 Linux System Administration
25
001 C Programming, Data Structures
101
» 001.01.Introduction to C
1
» 001.16.Structures
21
002 OOPs using C++ with Eclipse on Linux
23
» 002.06.Streams and File Processing
1
003 Linux System Programming
375
» 003.01.Processes-and-Resources-Utilization
26
» 003.01.91.Interview-Questions-Introductory-Concepts
20
» 003.01.92.Interview-Questions-Introductory-Concepts
5
» 003.02.Process-Management. Introduction
21
» 003.02.91.Interview Questions. Intro-to-Processes
20
» 003.03.Process-Management - Process Duplication
91
» 003.03.92.Interview-Questions-Process-Duplication
20
» 003.03.93.Interview-Questions-Process-Duplication
20
» 003.03.94.Interview-Questions-Process-Duplication
20
» 003.03.95.Interview-Questions-Process-Duplication
20
» 003.03.96.Interview-Questions-Process-Duplication
10
» 003.04.Process-Management - Process Replacement
67
» 003.04.81.Assignment. Process Replacement
24
» 003.04.91.Interview-Questions-Process-Replacement
20
» 003.04.92.Interview-Questions-Process-Replacement
22
» 003.05.01.Inter-Process-Communication. Pipes
22
» 003.06.Inter Process Communication. FIFOs
21
» 003.07.Signals and Handlers
43
» 003.07.91.Assignment. Signals and Handlers
20
» 003.07.92.Assignment. Signals and Handlers
22
» 003.08.Inter Process Communication Message Queues
1
» 003.09.Inter Process Communication. Shared Memory
1
» 003.10.Synchronization Techniques. Semaphore
21
» 003.11.POSIX-Threads
21
004 Linux Network Programming
34
» 004.01.Introduction to Networks and Configurations
1
» 004.02.Networking Basics
1
» 004.03.Introduction-to-Sockets
21
» 004.04.Linux Network stack
1
» 004.05.Transmission Control Protocol
1
005 Character Device Drivers Development
32
» 005.01.Introduction To Device Drivers
11
006.Project Evolution with GitLab
2
» 01.Introduction To GitLab
1
008 Block Device Driver Development
4
» 008.01.Introduction to Block Device Drivers
1
009 Embedded Linux-ARM. Storage
91
» 009.01.Linux Boot Process
28
» 009.01.14.Linux-Boot-Process
5
» 009.01.15.Introduction to BIOS
0
» 009.01.16.Introduction-to-BIOS-IQs
5
» 009.01.18.Introduction-to-BIOS-IQs
5
» 009.01.20.BIOS CMOS UEFI. IQs
5
» 009.02.Introduction To Embedded Linux
1
» 009.03.01.ARM Processor Architecture
1
» 009.03.02.Programmers Model
1
» 009.04.Boot Loaders
50
» 009.05.Understanding-ARM-Board-Bringup
1
» 009.06-Board Bringup Raspberry Pi
1
» 009.06.Board Bringup. Raspberry Pi4
1
010 Embedded Linux ARM, Configuring and Porting using Storage
0
011 Shell Scripting using Bash
90
» 011.01.Introduction to Shells and Shell Scripts
1
» 011.02.Basics of Shell Scripting - Bash
1
» 011.03.Conditions and Branching
23
» 011.04.Loops and Iterations/
31
» 011.04.81.Assignment. Branching and Looping
10
» 011.05.Reserved-Words-Bullitin-Commands-Command-Line-Parsing
1
» 011.06.Parameters and Variables
1
» 011.07.Structured Scripting. Functions
11
» 011.08.Arrays-Strings-in-bash
11
» 011.09.File Operations and Commands
1
» 011.10.Writing-Manual-Pages
1
» 011.11.Makefile
1
» 011.12.sed-awk
1
012 Linux Kernel Architecture and Internals
3
014. Linux Network Administration
296
» 014.01.Intro to NW and Configurations
220
» 014.01.12.Introduction to Networking
10
» 014.01.14.Packets-IQs
10
» 014.01.16.NetworkLayers
10
» 014.01.18.The Internet Layer
20
» 014.01.20.routes and the kernel routing table
10
» 014.01.22.The Default Gateway
5
» 014.01.24.IPv6 Addresses And Networks
20
» 014.01.26.Basic ICMP And DNS Tools
10
» 014.01.28.The Physical Layer And Ethernet
5
» 014.01.30.Understanding Linux Network Interface
5
» 014.01.32.Intro To Network Interface Configuration
5
» 014.01.34.Boot Activated Network Configuration
5
» 014.01.36.Manual and Boot Activated Nw Config
5
» 014.01.38.Network Configuration Managers
10
» 014.01.40.Resolving Hostnames
19
» 014.01.42.The Transport Layer TCP UDP Services.
10
» 014.01.44.Understanding DHCP
5
» 014.01.46.Automatic IPv6 Network Configuration. IQs
5
» 014.01.48.Configuring Linux as Router
5
» 014.01.50.Private Networks IPv4
5
» 014.01.52.Network Address Translation. IP Masquerading
5
» 014.01.54.Routers And Linux
5
» 014.01.56.Linux Firewall Basics
5
» 014.01.58.Setting Firewall Rules
5
» 014.01.60.Firewall Strategies
10
» 014.01.62.Ethernet-IP-ARP-NDP-IQs
5
» 014.01.64.Wireless Ethernet
5
» 014.02.Network Applications and Services
11
» 014.02.12.Basics of Services
3
» 014.02.14.Introduction to Network Servers
2
» 014.02.16.Network Servers. Secure Shell
5
» 014.06.Network Protocol Telnet
38
» 014.06.12.Introduction-To-Telnet
3
» 014.06.14.General Working. Telnet
5
» 014.06.16.General-Working-Telnet
5
» 014.06.18.Network Virtual Terminal
3
» 014.06.20.More About Telnet
3
» 014.06.22.Installing Telnet on Fedora
5
» 014.06.24.Telnet Commands-Fedora
3
» 014.06.26.Using Telnet in Linux
5
» 014.06.28.Secure telnet with FirewallD. Fedora.
3
» 014.06.30.Using Telnet in Linux
2
» 014.06.DHCP. A network management protocol
26
015 Python with Eclipse on Linux
27
025.Rust Programming
1
101 Advanced Data Structures using C
18
104.Mastering Linux Network Stack
1
» 104.01.Linux Network Stack User-Space
1
105 Parallel Port Device Drivers Development
5
205 Serial Port Device Drivers Development
3
303 Linux System Programming
32
Project 22. Ethernet Network Device Driver Development
0
Query
557
Project.203 Linux System Programming. MySQL
0
Pravjot Sir Classes
161
Events at EmbLogic
2
Project 16: SPI Device Driver Development
2
Project 17: I2C Device Driver Development
0
Project 18: PCI Device Driver Development
0
Project 19: Embedded Linux on ARM Using Network TFTP
0
Project 20: CAN Bus Protocol and Driver Development
0
Project 21: USB Device Drivers Development
0
Embedded Linux
0
ARM Embedded Processor
0
Training
2
Members Area
1
Word From Admin
1