EmbLogic's Blog

Author Archives: Sanjay Singla

Hello_kern_prog

This is insert the data into the ram and print it.

Posted in Character Driver | Leave a comment

Character-driver

Character driver —————————- revision 1.38 date: 2016/03/11 05:46:49; author: root; state: Exp; lines: +0 -1 *** empty log message *** —————————- revision 1.37 date: 2016/03/10 09:52:22; author: root; state: Exp; lines: +1 -1 *** empty log message *** —————————- revision … Continue reading

Posted in Character Driver | Leave a comment

mdc four-bit

multiple data compression with four bit RCS file: code_length.c,v Working file: code_length.c head: 1.3 branch: locks: strict root: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: This is code_length(). Here we calculate the … Continue reading

Posted in Uncategorized | Leave a comment

char-driver

char driver RCS file: cleanup.c,v Working file: cleanup.c head: 1.25 branch: locks: strict root: 1.25 access list: symbolic names: keyword substitution: kv total revisions: 25; selected revisions: 25 description: This cleanup() is use to remove the driver from kernel. —————————- … Continue reading

Posted in Uncategorized | Leave a comment

char_driver

logfile

Posted in Uncategorized | Leave a comment

Character_driver

RCS file: cleanup.c,v Working file: cleanup.c head: 1.25 branch: locks: strict root: 1.25 access list: symbolic names: keyword substitution: kv total revisions: 25; selected revisions: 25 description: This cleanup() is use to remove the driver from kernel. —————————- revision 1.25 … Continue reading

Posted in Uncategorized | Leave a comment

Basic program for socket_inet

SERVER #include<stdio.h> #include<stdlib.h> #include<linux/types.h> #include<linux/socket.h> #include<sys/un.h> #include<netinet/in.h> int main(int argc,char *argv[]) { int sfd,s_len,b,a,l,nfd,c_len,spn; struct sockaddr_in addr; struct sockaddr_in c_addr; sfd = socket(AF_INET,SOCK_STREAM,0); spn = atoi(argv[1]);//for command line arrguments //int socket(int domain, int type, int protocol);3rd arrguments 0 for defalut … Continue reading

Posted in Uncategorized | Leave a comment

Basic_program of socket

server_program int main() 9 { 10 int s_sockfd,c_sockfd; 11 int c_len,s_len,s_result; 12 struct sockaddr_un s_address; 13 struct sockaddr_un c_address; 14 unlink(“emblogic”); 15 s_sockfd = socket(AF_UNIX,SOCK_STREAM,0); 16 printf(“Print the s_sockfd %d\n”,s_sockfd); 17 if(s_sockfd == -1) 18 { 19 perror(“Error due to … Continue reading

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

intro_shared_memory_prog.

RCS file: intro_shared_memory_by_fork.c,v Working file: intro_shared_memory_by_fork.c head: 1.36 branch: locks: strict emblogic: 1.36 access list: symbolic names: keyword substitution: kv total revisions: 36; selected revisions: 36 description: This is my frist program to know the use of shared memory. We … Continue reading

Posted in Uncategorized | Leave a comment

massage_queue_one_send_other_receive

THIS IS SEND DATA RCS RCS file: msg_send.c,v Working file: msg_send.c head: 1.11 branch: locks: strict emblogic: 1.11 access list: symbolic names: keyword substitution: kv total revisions: 11; selected revisions: 11 description: Here use the msg_queue to send the data. … Continue reading

Posted in Uncategorized | Leave a comment

Message_queue

RCS file: msg_que_fork.c,v Working file: msg_que_fork.c head: 1.22 branch: locks: strict emblogic: 1.22 access list: symbolic names: keyword substitution: kv total revisions: 22;    selected revisions: 22 description: This is my frist prog. on mag queue. —————————- revision 1.22    locked by: … Continue reading

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

linklist

RCS file: linklist.c,v Working file: linklist.c head: 1.18 branch: locks: strict sanjaysingla: 1.18 access list: symbolic names: keyword substitution: kv total revisions: 18; selected revisions: 18 description: Here we make a linklist(). In this we take a value of choice … Continue reading

Posted in Data Structures with C | Leave a comment

project work on mdcaeuit

RCS file: header.h,v Working file: header.h head: 1.4 branch: locks: strict sanjaysingla: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: Make the rcs version of header Where we store the header file and … Continue reading

Posted in Uncategorized | Leave a comment

mdcaeuit project work

And close the comparasion prototype —————————- revision 1.1 date: 2015/06/25 09:53:12; author: sanjaysingla; state: Exp; Initial revision ============================================================================= RCS file: prototype.h,v Working file: prototype.h head: 1.1 branch: locks: strict sanjaysingla: 1.1 access list: symbolic names: keyword substitution: kv total revisions: … Continue reading

Posted in Uncategorized | Leave a comment

Array

Arrray is containe multiple value with same data type and contain continuous address. E.g.if we consider a[10] then it take 0 to 9 continuous address.

Posted in Uncategorized | Leave a comment