EmbLogic's Blog

Category Archives: Uncategorized

Drivers to write the data in the multiple quantum from the user space and read the dat in the user space .

////////////////////////////////////////////////////////////////// head 1.1; access; symbols; locks abhishek:1.1; strict; comment @ * @; 1.1 date 2014.02.24.08.43.11; author abhishek; state Exp; branches; next ; desc @this is the driver to read the data in the application @ 1.1 log @Initial revision @ … Continue reading →

Posted in Uncategorized | Comments Off

Functions

DEFINATION—A function is a group of statements that together perform a task. Every C program has at least one function, which is main(), We can divide up your code into separate functions. How you divide up your code among different … Continue reading →

Posted in Uncategorized | Leave a comment

Creating a linked list

RCS file: prog.c,v Working file: prog.c head: 1.1 branch: locks: strict akshat: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: insertion in link list without functions. —————————- revision 1.1    locked by: akshat; date: … Continue reading →

Posted in Uncategorized | Leave a comment

Insertion in link list

RCS file: prog1.c,v Working file: prog1.c head: 1.13 branch: locks: strict akshat: 1.13 access list: symbolic names: keyword substitution: kv total revisions: 13;    selected revisions: 13 description: creating a linked list. with help of functions. —————————- revision 1.13    locked by: … Continue reading →

Posted in Uncategorized | Leave a comment

Character driver: Write Operation For Multiple Quantum

head 1.18; access; symbols; locks; strict; comment @ * @; 1.8 date 2014.02.23.16.17.34; author root; state Exp; branches; next 1.7; 1.7 date 2014.02.23.16.16.23; author root; state Exp; branches; next 1.6; 1.6 date 2014.02.23.16.13.47; author root; state Exp; branches; next 1.5; … Continue reading →

Posted in Uncategorized | Leave a comment

Writing data to character device driver

RCS file: wwrite.c,v Working file: wwrite.c head: 1.7 branch: locks: strict raghav: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7;    selected revisions: 7 description: The file_operations structure is defined in linux/fs.h —————————- revision 1.7    locked by: raghav; … Continue reading →

Posted in Uncategorized | Leave a comment

Implementing cdev_del() — remove a cdev from the system

RCS file: clean.c,v Working file: clean.c head: 1.3 branch: locks: strict raghav: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3;    selected revisions: 3 description: to delete the chr_dev structure which we had initialized during chr_dev init —————————- … Continue reading →

Posted in Uncategorized | Leave a comment

structure.

structure- we can say that it is user defined array but it contains diff data types in a continuous memory location. syntax- struct name — user defined data type { type1 element1; type2 element2; }; struct name variable; –to allocate … Continue reading →

Posted in Uncategorized | Leave a comment

Structures

Structure is a user defined data type which is a collection of different elements of different data types stored at a continuous memory location. Syntax for structure is: struct name { data-type element; data_type element; ………; ………; }; struct name … Continue reading →

Posted in Uncategorized | Leave a comment

Drivers to write the data from the apploication in the one quantum.

head 1.4; access; symbols; locks root:1.4; strict; comment @ * @; 1.4 date 2014.02.13.12.11.39; author root; state Exp; branches; next 1.3; 1.3 date 2014.02.13.06.09.15; author root; state Exp; branches; next 1.2; 1.2 date 2014.02.12.16.08.56; author root; state Exp; branches; next … Continue reading →

Posted in Uncategorized | Comments Off

boot-up process

                                                                        BOOT- UP PROCESS When … Continue reading →

Posted in Uncategorized | Leave a comment

CHARACTER DRIVER

The file_operations Structure The file_operations structure is defined in linux/fs.h, and holds pointers to functions defined by the driver that perform various operations on the device. Each field of the structure corresponds to the address of some function defined by … Continue reading →

Posted in Uncategorized | Leave a comment

Centronics parallel interface

The Centronics parallel interface is an older and still widely-used standard I/O interface for connecting printer s and certain other devices to computers. The interface typically includes a somewhat cumbersome cable and a 36- pin male and female connector at … Continue reading →

Posted in Uncategorized | Leave a comment

Getting Major and Minor number of Driver

RCS file: init.c,v Working file: init.c head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5;    selected revisions: 5 description: this is the kernel file to find the major and minor numbers. —————————- … Continue reading →

Posted in Uncategorized | Comments Off

MEMORY

Physical and virtual memory Traditionally, one has physical memory, that is, memory that is actually present in the machine, and virtual memory, that is, address space. Usually the virtual memory is much larger than the physical memory, and some hardware … Continue reading →

Posted in Uncategorized | Leave a comment