EmbLogic's Blog

Author Archives: deepak garg

C – Struct memory allocation

Do you know how memory is allocated for structure members in C Always, contiguous(adjacent) memory locations are used to store structure members in memory. Consider below example to understand how memory is allocated for structures. Example program for memory allocation … Continue reading

Posted in Uncategorized | Leave a comment

Dynamic memory allocation

DETAILS The task of fulfilling an allocation request consists of locating a block of unused memory of sufficient size. Memory requests are satisfied by allocating portions from a large pool of memory called the heap. At any given time, some … Continue reading

Posted in Uncategorized | Leave a comment

IEEE 1284 – PARELLEL PORT

The IEEE 1284 standard allows for faster throughput and bidirectional data flow with a theoretical maximum throughput of 4 megabytes per second; actual throughput is around 2 megabytes/second, depending on hardware. In the printer venue, this allows for faster printing … Continue reading

Posted in Uncategorized | Leave a comment

INTODUCTION TO CHARACTER DEVICE DRIVER

Character special files or character devices relate to devices through which the system transmits data one character at a time by, for example, getchar. These device nodes often serve for stream communication with devices such as mice, keyboards, virtual terminals, … Continue reading

Posted in Uncategorized | Leave a comment

implementation & demostration of character device driver

Implemented the following: 1.Register the driver by using the new mechanism, allocate the memory , initialise and add the cdev to device table. head    1.2; access; symbols; locks root:1.2; strict; comment    @ * @; 1.2 date    2014.01.06.11.00.57;    author root;    state … Continue reading

Posted in Uncategorized | Leave a comment

character driver register implementation

log file of init function head    1.1; access; symbols; locks root:1.1; strict; comment    @ * @; 1.1 date    2014.01.04.11.18.09;    author root;    state Exp; branches; next    ; desc @this is the source code of init function for initialization in device driver … Continue reading

Posted in Uncategorized | Leave a comment

socket implementation

head  1.1; access; symbols; locks root:1.1; strict; comment     @ * @; 1.1 date  2013.12.30.05.37.11;    author root;      state Exp; branches; next  ; desc @this is server implemented by socket and create usrname & password for server @ 1.1 log @Initial revision … Continue reading

Posted in Uncategorized | Leave a comment

AN OVERVIEW OF PROCESS COMMUNICATION IN LINUX

An Overview of Process Communication in Linux First of all, let’s understand the actual meaning of: IPC. IPC is an abbreviation that stands for Inter-process Communication. It denotes a set of system calls that allows a User Mode process to: … Continue reading

Posted in Uncategorized | Leave a comment

socket

head    ; access; symbols; locks; strict; comment @ * @; desc @this is the client implemented with socket. @

Posted in Uncategorized | Leave a comment

socket

head    ; access; symbols; locks; strict; comment @ * @; desc @this is code of server which is implemented with the use of socket. @ ~ ~

Posted in Uncategorized | Leave a comment