EmbLogic's Blog

CHARACTER DEVICE DRIVER

i have implimented the read write close open for 5 application in multithread using semaphore successfully.now i am going to do trim function………………………..

 

RCS file: app.c,v
Working file: app.c
head: 1.9
branch:
locks: strict
amitdalal: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
extended the message in buff
—————————-
revision 1.9 locked by: amitdalal;
date: 2013/07/21 22:38:57; author: amitdalal; state: Exp; lines: +127 -73
include some header file for ipc semaphore and thread semaphore
give the prototype of set sem_value
give prototype for semaphore_p and semaphore_v
defined union semun structure
created ipc semaphore for ist application
call the function set_sem_value
call the function semaphore _p
call the function semaphore_v at te end of main finction
defined semaphor_p,semaphore_v and set_sem_val function
same step are done for 5 application except calling set_value function
—————————-
revision 1.8
date: 2013/07/18 21:16:18; author: amitdalal; state: Exp; lines: +0 -1
added pthread join function
added pthread exit
—————————-
revision 1.7
date: 2013/07/18 21:08:19; author: amitdalal; state: Exp; lines: +94 -41
define the function for open
4 thread created
define the function for write
lssek function after write
define function for read
define function for close
—————————-
revision 1.6
date: 2013/07/17 21:37:34; author: amitdalal; state: Exp; lines: +8 -5
added variable len0,count0 for lseek after write
added lseek after write
again use the write function to append
—————————-
revision 1.5
date: 2013/07/17 00:11:50; author: amitdalal; state: Exp; lines: +0 -1
added variable
use lseek
update write
printk offset value
—————————-
revision 1.4
date: 2013/07/16 23:40:05; author: amitdalal; state: Exp; lines: +71 -68
include header file for lseek
set the offset
printf the value of offset
—————————-
revision 1.3
date: 2013/07/15 21:56:21; author: amitdalal; state: Exp; lines: +52 -15
added lseek for f_pos
printf the newpos
—————————-
revision 1.2
date: 2013/07/11 00:32:38; author: amitdalal; state: Exp; lines: +1 -1
extended the message to check whether my multiple qset is working or not for above 64 byte
—————————-
revision 1.1
date: 2013/07/11 00:04:48; author: amitdalal; state: Exp;
Initial revision
=============================================================================
RCS file: dd1,v
Working file: dd1
head: 1.5
branch:
locks: strict
amitdalal: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
adding compilation command for reading in script
gcc
./app1
—————————-
revision 1.5 locked by: amitdalal;
date: 2013/07/21 22:56:36; author: amitdalal; state: Exp; lines: +8 -0
added gcc command for 5 application
added executable command for all the 5 application
—————————-
revision 1.4
date: 2013/07/18 21:17:28; author: amitdalal; state: Exp; lines: +1 -1
added -lpthread for compilation
—————————-
revision 1.3
date: 2013/07/15 21:55:17; author: amitdalal; state: Exp; lines: +4 -3
add unlink node
—————————-
revision 1.2
date: 2013/07/11 06:00:23; author: amitdalal; state: Exp; lines: +2 -2
make another node for reading
—————————-
revision 1.1
date: 2013/07/11 05:16:48; author: amitdalal; 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>