#include #include #include #include #include #include #include #include #include MODULE_LICENSE(“GPL”); MODULE_AUTHOR(“KERNEL_CODE”); #define DEBUG #define NAME “char_dev” #define NODE 5 #define SCULL_MAJOR 0 #define SCULL_MINOR 0 #define QUANTUM 8 #define SIZE 0 #define QSET 8 #define DEV_SIZE 1024 #define DEVICE_NAME “char_dev” … Continue reading
Briefly, a boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to an operating system kernel software (such as Linux or GNU Mach). The kernel, in turn, initializes … Continue reading
About 4 months I have worked upon something called Device Driver (Character Driver, to be specific).Before start working, First of all I needed to know what really a device driver is? As we all know it is the kernel what … Continue reading
Serial Interface is one of the most commonly used interface in Embedded Systems, during development and in field also. Almost every machine have a serial port over it. So that it could be connected to some peripheral or another Embedded … Continue reading
I was checking the size of the stack space allocated to a process. For that i used recursion and I got Seg fault after almost 8 MB(7.98 MB) of data pushed on to the stack. Then I increased the size … Continue reading
At what stage of compiler the call of an inline function is replaced with its definition????
Can we manually switch between two Threads of a process ?? Means, is it possible to context out a running thread and context in a user desired thread, at any time????
Article on Character Driver: I have been working upon Device Driver (Character Driver, to be specific) since last 20 days.Before start working, First of all I needed to know what really a device driver is? As we all know it … Continue reading
#include<stdio.h> #include<stdlib.h> int main() { void *ptr; char i; ptr = malloc(sizeof(int ) * 5); for(i = 0; i<(sizeof(int) * 5); i++) { *(int *)(ptr + i) = i; printf(” ptr + %d = %p\t %d\n”, i, (ptr + i … Continue reading
CS file: ./ch_d.c,v Working file: ./ch_d.c head: 1.15 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 15; selected revisions: 15 description: Basic Driver Arch. with cdev initionlized —————————- revision 1.15 date: 2013/07/16 23:23:14; author: vikram; state: … Continue reading
——————————————- revision 1.5 date: 2013/06/26 14:31:12; author: vikram; state: Exp; lines: +27 -12 300 Clients Served Successfully. with NO changes. fro version 1.4. —————————-
RCS file: ./server.c,v Working file: server.c head: 1.4 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: Initial server.c But some BUGS. —————————- revision 1.4 date: 2013/06/26 03:13:53; author: vikram; state: Exp; … Continue reading
While we Duplicate a process using fork(); what exectly happens 1) child process shares the parent’s process context??? or 2)child is provided with a new copy of parent’s process context???
Multiple data Compression and Decompression Done…..for all code lengths.
I am facing a Problem when i am creating a file manually like using command vim filename….size of the file is one greater than the no of bytes(charcters) in the file…while checking what exactly that last byte is, i found … Continue reading