EmbLogic's Blog

Create the node, open it and open & release the devices

RCS file: header.h,v
Working file: header.h
head: 1.14
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 14; selected revisions: 14
description:
this is basic header file
—————————-
revision 1.14
date: 2015/05/07 07:48:45; author: root; state: Exp; lines: +1 -1
gave the prototype for scull_trim()
—————————-
revision 1.13
date: 2015/05/07 07:47:51; author: root; state: Exp; lines: +1 -1
declare the prototype for open_dev & close_dev
—————————-
revision 1.12
date: 2015/05/06 13:59:14; author: root; state: Exp; lines: +31 -35
*** empty log message ***
—————————-
revision 1.11
date: 2015/05/06 11:32:13; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.10
date: 2015/05/06 11:29:40; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/05/06 11:26:56; author: root; state: Exp; lines: +9 -0
*** empty log message ***
—————————-
revision 1.8
date: 2015/04/27 10:24:14; author: root; state: Exp; lines: +21 -0
declare marcos for quantum size, qset size, data size, device size
also declare these variables in struct Dev
—————————-
revision 1.7
date: 2015/04/24 13:43:07; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.6
date: 2015/04/24 13:38:51; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/04/24 13:32:14; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/04/24 12:55:42; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/04/24 12:52:22; author: root; state: Exp; lines: +14 -0
declare struct Qset, struct Dev
—————————-
revision 1.2
date: 2015/04/24 11:42:31; author: root; state: Exp; lines: +20 -1
included moduleparan.h & slab.h
—————————-
revision 1.1
date: 2015/04/24 05:20:37; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: file_operations.h,v
Working file: file_operations.h
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
this is basic header file for file operations
—————————-
revision 1.3
date: 2015/05/07 08:05:53; author: root; state: Exp; lines: +1 -1
map close_dev with release
—————————-
revision 1.2
date: 2015/05/07 08:04:10; author: root; state: Exp; lines: +1 -1
declare a structure struct file_operations
map open_dev with open
—————————-
revision 1.1
date: 2015/05/07 08:03:44; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: init.c,v
Working file: init.c
head: 1.12
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 12; selected revisions: 12
description:
this is driver intialisation file
—————————-
revision 1.12
date: 2015/05/06 13:59:15; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2015/04/27 10:36:47; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.10
date: 2015/04/27 10:34:46; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/04/27 10:25:49; author: root; state: Exp; lines: +46 -17
for new device use register_chrdev_region()
intialize all device i.e. nod=20
add all device
—————————-
revision 1.8
date: 2015/04/24 13:40:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/04/24 13:32:16; author: root; state: Exp; lines: +6 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/04/24 12:52:59; author: root; state: Exp; lines: +11 -0
allocating memory using kmalloc()
—————————-
revision 1.5
date: 2015/04/24 11:58:00; author: root; state: Exp; lines: +1 -1
use module parameter using module_param()
—————————-
revision 1.4
date: 2015/04/24 11:43:06; author: root; state: Exp; lines: +14 -2
intialise driver using alloc_chrdev_region()
—————————-
revision 1.3
date: 2015/04/24 05:32:26; author: root; state: Exp; lines: +3 -3
register the driver
—————————-
revision 1.2
date: 2015/04/24 05:24:42; author: root; state: Exp; lines: +3 -3
intialize driver using __init func
—————————-
revision 1.1
date: 2015/04/24 05:20:49; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: clean.c,v
Working file: clean.c
head: 1.7
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
this is driver cleanup file
—————————-
revision 1.7
date: 2015/04/27 10:27:17; author: root; state: Exp; lines: +8 -2
clean all devices
—————————-
revision 1.6
date: 2015/04/24 13:32:17; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/04/24 12:53:37; author: root; state: Exp; lines: +1 -0
free memory using kfree()
—————————-
revision 1.4
date: 2015/04/24 11:44:00; author: root; state: Exp; lines: +1 -1
unregister the driver using unregister_chrdev_region()
—————————-
revision 1.3
date: 2015/04/24 05:33:04; author: root; state: Exp; lines: +1 -1
unregister the driver
—————————-
revision 1.2
date: 2015/04/24 05:25:51; author: root; state: Exp; lines: +1 -1
cleanup the driver using __exit func
—————————-
revision 1.1
date: 2015/04/24 05:21:08; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: writer.c,v
Working file: writer.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
—————————-
revision 1.2
date: 2015/05/07 08:35:22; author: root; state: Exp; lines: +1 -1
this program deals with application
here we can open the node using open command to get the fd
—————————-
revision 1.1
date: 2015/05/06 11:27:09; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: open_dev.c,v
Working file: open_dev.c
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
—————————-
revision 1.4
date: 2015/05/07 08:26:22; author: root; state: Exp; lines: +0 -1
call a func scull_trim to flush the data from device
—————————-
revision 1.3
date: 2015/05/07 08:15:24; author: root; state: Exp; lines: +0 -1
this is the program for open the devices
points the scull_dev * to offset of 2nd device
—————————-
revision 1.2
date: 2015/05/06 13:59:16; author: root; state: Exp; lines: +7 -6
*** empty log message ***
—————————-
revision 1.1
date: 2015/05/06 11:27:13; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: close_dev.c,v
Working file: close_dev.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
—————————-
revision 1.3
date: 2015/05/07 07:51:41; author: root; state: Exp; lines: +1 -1
this is a simple program for closing the device
—————————-
revision 1.2
date: 2015/05/06 13:59:17; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.1
date: 2015/05/06 11:27:14; author: root; state: Exp;
Initial revision
=============================================================================

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>