EmbLogic's Blog

Author Archives: kashishgarg1992

How to find chipset mounted on your motherboard?????

You can find the chipset mounted on your motherboard . using coomand ==lspci on the terminal will give ou list of all chipset for audio card , usb ,serial, parallel ,vga …….etc

Posted in Character Driver, Parallel Port Driver, Serial Port Driver | Leave a comment

client server communication using threads and socket

Eurekkkkkkaaaaaaaa…………….. Successfully implemented client server communication using threads and socket. Problems which you might face 1>unsuccessfull bind() 2>unlinking not successfull in AF_INET,,,unlink() won’t work in  this case. 2.1>server_addr.sin_addr.s_addr=IPaddress like 192.168.1.0 not taking showing warning. 3>when to create processing_client and server … Continue reading

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

relatin b/w fork() &n execl..

Trying to use execl b/w server and processing clients without fork(); O/P–>block on read or write will definitely occur on server-pro_client side……. When we use fork( ) to create a child process the child process does not contain the entire … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

project01–>pointers

1>>    *s++  and *(s++)   OR    *s– and *(s–) both behaves in the same manner.prints the same value. 2>> ++*s   means value print the the incremented value at pointer s.  

Posted in Data Structures with C | Leave a comment

silly warnings

“ISO C90 warning” arises bcoz in your function you are defining variables in b/w the statements….correct method is you define and declare varibles at beginning of the function only……

Posted in Uncategorized | Leave a comment

character driver—>devwrite.c

Major reasons for kernel Crash 1>>you trying to access a location in kernel space which you are not authorised. 2>>you are trying to write data in the memory location which is not part of quantums(***MAJOR CRASH***).  

Posted in Character Driver, Device Drivers | Leave a comment

program to convert decimal to binary & octa & hexa

“1.Binary”; 2.Ocatal; 3.hexadecimal; switch(choice) { case 1: base=2; case 2: base=8; case 3: base=16; “enter your no\n”; convert(num,base); convert(int num,int base) { int rem; rem=num%base; num/=base; if(num>0) convert(num,base); if(rem<10) printf(“%d”,rem); else printf(“%c”,rem-10 + ‘A’); }

Posted in Data Structures with C | Leave a comment

project05==character driver

Common Errors which most of us will face while doing character drivers 1) Multiple definitions of the variable {bcoz of wrong use of extern} 2)control reaches end of non-void function{bcoz not returning any value to that non-void function} 3)warning: variable … Continue reading

Posted in Character Driver | Leave a comment

project 05==character driver

things to be kept in mind while doing “Character Driver” 1>Be very patient as you will get different errors with silly solutions. 2>As you are dealing with multiple files like in my case files are header.h,declaration.h,init.c,clean.c,fops.h,prototypes.h,devopen.c, devrelease.c,devwrite.c…BE CAREFUL about the … Continue reading

Posted in Character Driver | Leave a comment

Multiple Data Compression and Encryption using Iterative technique

RCS file: mdc.c,v Working file: mdc.c head: 1.6 branch: locks: strict emblogic: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6;    selected revisions: 6 description: successfully created master array finded no of distinct charcters  also using functions currently … Continue reading

Posted in Uncategorized | Leave a comment