EmbLogic's Blog

Author Archives: Ritu Gupta

write routine for character driver

RCS file: write_dev.c,v Working file: write_dev.c head: 1.37 branch: locks: strict root: 1.37 access list: symbolic names: keyword substitution: kv total revisions: 37; selected revisions: 37 description: start dev_write() —————————- revision 1.37 locked by: root; date: 2014/12/15 04:29:54; author: root; … Continue reading

Posted in Uncategorized | Leave a comment

Trim() for character driver

RCS file: trim.c,v Working file: trim.c head: 1.14 branch: locks: strict root: 1.14 access list: symbolic names: keyword substitution: kv total revisions: 14; selected revisions: 14 description: —————————- revision 1.14 locked by: root; date: 2014/12/13 11:18:22; author: root; state: Exp; … Continue reading

Posted in Character Driver | Leave a comment

open() routine for character driver

RCS file: open_dev.c,v Working file: open_dev.c head: 1.12 branch: locks: strict root: 1.12 access list: symbolic names: keyword substitution: kv total revisions: 12; selected revisions: 12 description: open function for character driver is declared in this file —————————- revision 1.12 … Continue reading

Posted in Character Driver | Leave a comment

Registering and unregistering the character driver into and from the kernel.

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: this is the header file for character driver in this file i include … Continue reading

Posted in Character Driver | Leave a comment

IPC based project using threads

RCS for sever file RCS file: server.c,v Working file: server.c head: 1.34 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 34; selected revisions: 34 description: server program using threads —————————- revision 1.34 date: 2014/11/21 06:58:33; author: … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

IPC based server-client project using message queue

Header file RCS for IPC project using message queue: RCS file: ./header.h,v Working file: ./header.h head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: header file for client … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

client-server communication using PIPES

server.c: #include”header1.h” int main() { pid_t pid_c,pid_p; int fd_c[2],fd_p[2],counter=0,pipec_success,pipep_success,stat_val,res; char fd_cr[2],fd_cw[2],fd_pr[2],fd_pw[2],*path; struct data_format data; path = malloc(sizeof(char)*50); while(counter < 3) { pipec_success = pipe(fd_c); if(pipec_success != 0) { perror(“Pipe client:”); return -1; } sprintf(fd_cr,”%d”,fd_c[0]); sprintf(fd_cw,”%d”,fd_c[1]); printf(“Enter path\n”); gets(path); pid_c = … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Program to pass file descriptor from one process to another

Output of the program is: Main function starts File opened successfully with fd 3 i am in parent I am in child process and my pid is 1505 fd received from calling process is 3 file contains Welcome to emblogic. … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

4-bit compression completed

RCS file: mdc.c,v Working file: mdc.c head: 1.45 branch: locks: strict root: 1.45 access list: symbolic names: keyword substitution: kv total revisions: 45; selected revisions: 45 description: create a base code for multiple data compression and encryption using iterative technique … Continue reading

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

Header file for MDC project

RCS file: header.h,v Working file: header.h head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: create header file for multiple data compression and encryption using iterative technique —————————- … Continue reading

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

Master array for data compression is created

RCS file: mdc.c,v Working file: mdc.c head: 1.32 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 32; selected revisions: 32 description: create a base code for multiple data compression and encryption using iterative technique —————————- revision … Continue reading

Posted in Data Structures with C, Project 2: Multiple Data Compression and Encryption | Leave a comment