EmbLogic's Blog

Author Archives: Parampreet Singh

Difference between Kmalloc() and Vmalloc()

In order to allocate memory from kernel various types of API(application programming interfaces) are used.Two such API’s are Kmalloc() and Vmalloc(). SYNTAX: void * kmalloc(size_t size , int flags); void * vmalloc(unsigned long size); Kmalloc() is use to allocate memory … Continue reading

Posted in Uncategorized | Leave a comment

POSIX THREADS: BRIEF INTRODUCTION

Threads,Like processes are a mechanism to allow a program to do more than one thing at a time.As with processes,threads appear to run concurrently;the linux kernel schedules them asynchronously,interrupting each thread from time to time to give others a chance … Continue reading

Posted in Uncategorized | Leave a comment

Initializing a driver using alloc_chrdev_region()

RCS file: header.h,v Working file: header.h head: 1.10 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 10; selected revisions: 10 description: this is header file here various header files are included such as module param.h init.h … Continue reading

Posted in Character Driver, Device Drivers | Tagged | Leave a comment

Interprocess communication using message queues at the requesting side and shared memory at the processing side with three clients successfully implemented.

RCS file: header.h,v Working file: header.h head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: >> header file: contains header files which are required in the program mostly named stdio.h,sys/shm.h,sys/ipc.h,sys/types.h,sys/msg.h ============================================================================= RCS file: server.c,v … Continue reading

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

Inter process communication using message queues with three requesting clients and three processing clients implemented successfully

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict psingh: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: define header files thar are required for the implementation of message queues at … Continue reading

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

Inter process communication using fifo at the requesting side and pipes at the processing side using semaphores and signals.

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict psingh: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: gave header files which are required for the fifo and semaphore implementation. gave … Continue reading

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

Project 03: Client Server implementation using PIPES

Here i have used 3 requesting clients and 3 processing clients. RCS file: header1.h,v Working file: header1.h head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: this is the header file.it contains library which … Continue reading

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

Inter Process Communication Using Pipes:

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this includes header files different libraries used in our program structure is also … Continue reading

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

Inter Process Communication using files:

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is header file this file includes the standard libraries required in the … Continue reading

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