EmbLogic's Blog

Character Driver

Rlog file for character driver
—————————————————————————-
RCS file: lkm2.c,v
Working file: lkm2.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
Base file for character device driver.
It register Device Driver creats major no.
Also it unregister the driver.
—————————-
revision 1.5 locked by: root;
date: 2013/07/03 12:44:29; author: zahid; state: Exp; lines: +6 -3
Introduce fucntionality of command line argumets.
Using module_param().
—————————-
revision 1.4
date: 2013/07/03 11:55:20; author: zahid; state: Exp; lines: +8 -1
We initialize all cdev members like owners, ops, dev, etc.
Initialize successfully.
—————————-
revision 1.3
date: 2013/07/03 11:31:44; author: zahid; state: Exp; lines: +23 -2
We initialize the cdev using cdev_init().
Then we add this device using cdev_add().
Now our device is live and its operation can be called by the kernel.
—————————-
revision 1.2
date: 2013/07/03 10:49:06; author: zahid; state: Exp; lines: +20 -5
Now program allocate memory to struct sculldev using kmalloc().
Then we set the allocted memory to ” using memset.
—————————-
revision 1.1
date: 2013/07/03 10:00:00; author: zahid; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

DEVICE DRIVER

I have done REGISTRATION, UNREGISTERED AND OPEN CLOSE in single node device driver but not able to unregister it for 10 node..

 

Posted in Uncategorized | Tagged , , | Leave a comment

Ranjeet Singh

RCS file: header2.h,v
Working file: header2.h
head: 1.6
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
This is the header file for loadable kernel module.
—————————-
revision 1.6
date: 2013/07/03 06:53:31; author: root; state: Exp; lines: +1 -0
include linux/moduleparam.h.
—————————-
revision 1.5
date: 2013/07/03 06:35:46; author: root; state: Exp; lines: +20 -0
declare variables in the data structure “struct ScullDev”: qset_size, quantum_size, data size, device_size.
Also define Macros:QSET_SIZE, QUANTUM_SIZE, DATA_SIZE, DEVICE_SIZE and initialize them.
—————————-
revision 1.4
date: 2013/07/02 11:31:50; author: root; state: Exp; lines: +2 -0
add data structure “struct file_operations fops”.
—————————-
revision 1.3
date: 2013/07/02 10:49:46; author: root; state: Exp; lines: +13 -0
added header files :cdev.h , slab.h
define data structure “struct ScullDev” and also define pointer to that structure.
also define data structure “struct scullQset”.
—————————-
revision 1.2
date: 2013/07/02 09:38:19; author: root; state: Exp; lines: +14 -1
adding header file fs.h.
define macros DEV_NAME as device name, MAJORNO as major number, MINORNO as minor number for device.
define variables : dev, majorno for MAJORNO, minorno for MINORNO, nod for NOD.
—————————-
revision 1.1
date: 2013/07/02 07:30:51; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Tagged | Leave a comment

Ranjeet Singh

RCS file: lkm.c,v
Working file: lkm.c
head: 1.7
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
This is loadable kernel module.
—————————-
revision 1.7
date: 2013/07/03 06:54:15; author: root; state: Exp; lines: +2 -1
using function module_param.
—————————-
revision 1.6
date: 2013/07/03 06:42:07; author: root; state: Exp; lines: +8 -1
initialize values to struct i_cdev’s variables.
also initialize values to the variables declared in struct ScullDev.
—————————-
revision 1.5
date: 2013/07/02 11:30:00; author: root; state: Exp; lines: +12 -1
In function init : call functions cdev_init & cdev_add.
—————————-
revision 1.4
date: 2013/07/02 11:01:33; author: root; state: Exp; lines: +5 -2
In function init: using kmalloc function & flush the garbage using memset.
In function exit: free allocated memory using kfree.
—————————-
revision 1.3
date: 2013/07/02 10:04:08; author: root; state: Exp; lines: +30 -6
in init function: call register_chrdev_region.
also printed the values of majorno and minorno.
also call MKDEV function.
—————————-
revision 1.2
date: 2013/07/02 09:43:30; author: root; state: Exp; lines: +15 -3
call alloc function for registering the device.
in exit func: call unregister_chrdev_region function for unregistering the device.
—————————-
revision 1.1
date: 2013/07/02 07:35:12; author: root; state: Exp;
Initial revision
========================================================

Posted in Uncategorized | Tagged | Leave a comment

Character Driver Update

Completed registering and unregistering driver.
Implemented Open and Release operations to open and close a node by using my own charater driver.

Posted in Character Driver | Leave a comment

E30.1.30 (update)

completed the task of opening a node, with the help of my own registered driver.

Posted in Character Driver, Device Drivers | Tagged | 1 Comment

first simplest driver

i have done myfirst simplestdriver sucessfullly

Posted in Uncategorized | Leave a comment

30.01.30: JATINDER KUMAR

today i made simplest driver hello word .
understood lsmod,rmmod,insmod
now i am going home

Posted in Device Drivers | Tagged | Leave a comment

30.01.30 : Taruna

Completed today’s work… Made the simplest device driver

Posted in Character Driver | Tagged | Leave a comment

IPC THREAD

completed successfully using DETACH ATTRIBUTE……

Posted in Uncategorized | Leave a comment

IPC using Multithread

Successfully run IPC project using multi thread
server can process 1200 req. clients.

Posted in Uncategorized | Leave a comment

E 30: JATINDER KUMAR

Implemented project 4 using thread successfully.
run successfully 1021 clients at a time.
in this project i have used one fifo for requesting and one fifo for final result in between clients and server.
on other side i used messgae queue in same manner

here is logfile

RCS file: server.c,v
Working file: server.c
head: 1.7
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
Intially i creted a server.
then i use mkfifo and access to use the fifo created by client.
further i opened same fifo in the O_RDONLY mode and was able to read from the fifo successfully.
—————————-
revision 1.7
date: 2013/06/27 08:07:10; author: jatinder; state: Exp; lines: +197 -56
made following changes
1. semp and semv function registeration.
close fd in client
3. getting the result for 1021 clients.
—————————-
revision 1.6
date: 2013/06/26 06:51:11; author: jatinder; state: Exp; lines: +64 -4
Now used thread attribute detached.
server running for running for infinite time.
cleint successfully send data by fifo
in server respective thread is invoked.
thread invoke pclient by execl system call
thread wait for pcleint exit code.
then thread send messgae by message queue.
pcleint process the data and sent by message queue.
thread recived message by msgrcv.
fruther thread sent data back to server by fifo
“logfile” 63L, 2525C 1,0-1 Top

Posted in Project 04: FTP based Client Server using Threads and Sockets, Uncategorized | Tagged | 1 Comment

E30 : Taruna

Implemented the project using detached threads ..

Serving 1021 clients.

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

E30 : Kushal Chugh

RCS file: server.c,v
Working file: server.c
head: 1.2
branch:
locks: strict
kushal: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
server working for 15 clients using fifo
—————————-
revision 1.2 locked by: kushal;
date: 2013/06/26 11:33:10; author: kushal; state: Exp; lines: +46 -46
server modified and is able to run 150 clients with correct output
—————————-
revision 1.1
date: 2013/06/26 05:50:30; author: kushal; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

E30:Monika

RCS file: server.c,v
Working file: server.c
head: 1.1
branch:
locks: strict
user1: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;     selected revisions: 1
description:
This is client-server based implementation of multiple threads.
It is implemented using msgqueues and shared memory.
Client sends request to server using msgqueue.
for every request server creates a thread which then separately handles the client.
Thread invokes a processing client and gets the result using shared memory.
It then returns the result to client using msgqueue.
Thread is detached from main-thread.
—————————-
revision 1.1    locked by: user1;
date: 2013/06/26 11:14:56;  author: user1;  state: Exp;
Initial revision
=============================================================================

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment