EmbLogic's Blog

Author Archives: masoomktr

what is a Device Driver

What is a Device Driver? Making hardware work is tedious. To write to a hard disk, for example, requires that you write magic numbers in magic places, wait for the hard drive to say that it is ready to receive … Continue reading

Posted in Device Drivers | Leave a comment

TCP/IP Based client & server using socket

Abstract: The POSIX thread libraries are a standards based thread API for C/C++. It allows one to spawn a new concurrent process flow. It is most effective on multi-processor or multi-core systems where the process flow can be scheduled to … Continue reading

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

Socket using client & server

Most interprocess communication uses the client server model. These terms refer to the two processes which will be communicating with each other. One of the two processes, the client, connects to the other process, the server, typically to make a … Continue reading

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

Kernel

Kernel Definition – What does Kernel mean? A kernel is the core component of an operating system. Using interprocess communication and system calls, it acts as a bridge between applications and the data processing performed at the hardware level. When … Continue reading

Posted in Embedded Linux | Leave a comment

Introduction to cross-compiling for Linux

Host vs Target A compiler is a program that turns source code into executable code. Like all programs, a compiler runs on a specific type of computer, and the new programs it outputs also run on a specific type of … Continue reading

Posted in Project 9: Embedded Linux on ARM | Leave a comment

FIFO

DESCRIPTION A FIFO special file (a named pipe) is similar to a pipe, except that it is accessed as part of the filesystem. It can be opened by multiple processes for reading or writing. When processes are exchanging data via … Continue reading

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

SEMAPHORES

Semaphores Semaphores are used to protect critical regions of code or data structures. Remember that each access of a critical piece of data such as a VFS inode describing a directory is made by kernel code running on behalf of … Continue reading

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

pipe

DISCRIPTION-> Pipe-> it is a unidirectional channel that is used in inter process commmunication ,in pipe two file discriptor is used these are fd(0)=read & fd(1)=write RETURN VALUE-> on success zero is returned,if error -1 is returned  

Posted in Uncategorized | Leave a comment

Dynamic memory allocation

Malloc-> It is used to allocate memory at run time in to the RAM. The prototype function is used is in stdlib.h, Syntax-> ptr=int * (malloc) (sizeof bytes)

Posted in Uncategorized | Leave a comment