EmbLogic's Blog

Author Archives: Vikram Sharma

sysfs

#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

Posted in Uncategorized | Leave a comment

Introduction to GRUB

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

Posted in Uncategorized | Leave a comment

Article:Character Driver

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

Posted in Uncategorized | Leave a comment

Serial Communication:

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

Posted in Uncategorized | Leave a comment

Bus Error (Core Dumped):

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

Posted in Uncategorized | Tagged , , | Leave a comment

Query:

At what stage of compiler the call of an inline function is replaced with its definition????  

Posted in Uncategorized | Tagged , , | 1 Comment

Threads:

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

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged , , | Leave a comment

E 30:01:30 Vikram Sharma

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

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

Pointers.

#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

Posted in Data Structures with C | Tagged , | Leave a comment

E 30:01:30 Vikram Sharma

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

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

E 30: Vikram Sharma

——————————————- 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. —————————-

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E 30: Vikram Sharma

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

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

Project 03

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

Posted in Uncategorized | 1 Comment

Project 01

Multiple data Compression and Decompression Done…..for all code lengths.

Posted in Uncategorized | 3 Comments

Project 01

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

Posted in Uncategorized | 2 Comments