////////////////////////////////////////////////////////////////// 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
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
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
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
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
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
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
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
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
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
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
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
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
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