RCS file: cleanup.c,v
Working file: cleanup.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
unregister_chrdev to unregister the device
free the memory that is allocated to device by kfree
print no of node that is no of devices
cdev_del to delete something
—————————-
revision 1.3 locked by: root;
date: 2014/05/08 10:09:08; author: root; state: Exp; lines: +0 -2
same can done in clanup function if number of nodes are more in number
—————————-
revision 1.2
date: 2014/05/08 10:05:50; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.1
date: 2014/05/08 10:00:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: cleanup.c,v
Working file: cleanup.c
head: 1.3
branch:
“logcleanup” 58L, 1784C 32,1 Top
///////////////////////////////////////////////////////////////////////////////////////////////////////
CS file: init.c,v
Working file: init.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
alloc_chrdev is done for registring the device
kmalloc is done to allocate memory to device
then memset is done
before kmalloc print major and minor no that are present in dev
now initilization is done means kernel provide memory
cdev_add is done to add on something
now again print major and minor no that are nor present in c_dev which is within struct sculldev
—————————-
revision 1.2 locked by: root;
date: 2014/05/08 10:06:58; author: root; state: Exp; lines: +2 -3
if number of devices are more in number then use for loop
module_param is used to pass command line arguments that is number of nodes is passed by user on the shell
—————————-
revision 1.1
date: 2014/05/08 10:00:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: init.c,v
Working file: init.c
head: 1.2
branch:
“loginit” 58L, 2084C 1,0-1 Top
////////////////////////////////////////////////////////////////////////////////////////////////////////////
RCS file: dec.h,v
Working file: dec.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
we extern node number
dev_t dev
struct sculldev *sculldev
—————————-
revision 1.1 locked by: root;
date: 2014/05/08 10:00:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: dec.h,v
Working file: dec.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
we extern node number
dev_t dev
struct sculldev *sculldev
—————————-
revision 1.1 locked by: root;
date: 2014/05/08 10:00:06; author: root; state: Exp;
Initial revision
========================////////////////////////////////////////////////////////////
RCS file: file_op.h,v
Working file: file_op.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
struct file_opeartion is created where mapping of open and release functon is done
include this in init functin
—————————-
revision 1.1 locked by: root;
date: 2014/05/08 10:20:54; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: file_op.h,v
Working file: file_op.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
struct file_opeartion is created where mapping of open and release functon is done
include this in init functin
—————————-
//////////////////////////////////////////////////////
RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
include header files that are needed in this program
struct sculldev structure is included here
that include c_dev
—————————-
revision 1.2 locked by: root;
date: 2014/05/08 10:20:29; author: root; state: Exp; lines: +1 -0
defination of scullopen and scullrelease is given here
—————————-
revision 1.1
date: 2014/05/08 10:00:06; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
1,0-1 Top
total revisions: 2; selected revisions: 2
description:
include header files that are needed in this program
struct sculldev structure is included here
that include c_dev
—————————-
revision 1.2 locked by: root;
date: 2014/05/08 10:20:29; author: root; state: Exp; lines: +1 -0
defination of scullopen
////////////////////////////////////////////////////////