EmbLogic's Blog

daily work status

character driver insertion and clean up complete

Posted in Uncategorized | Leave a comment

Re :- container_of

How does container_of works internally (ie. on RAM)??

Posted in Uncategorized | Leave a comment

memory allocation

ptr=malloc(sizeof(char)*4);

if length of available characters in string is more than 4 then memory allocation to pointer cross the limit but it does not affect the output to print the string.

Posted in Uncategorized | 1 Comment

character driver

implemented timer and tasklet…

Posted in Uncategorized | Leave a comment

RE: Working Status(Char Driver)

Sir,

I have implemented Kernel Timer and Tasklet.

Posted in Uncategorized | Leave a comment

Re:- Atomic Context and Process Context

Share yours idea, view, difference between “Atomic Context and Process Context” with some relevat examples. .. Please

Posted in Uncategorized | 1 Comment

Boot Process on x86 & Server Configuration for DHCP Server Done

Posted in Uncategorized | Leave a comment

Project 04: Client-Server using Threads and Sockets

Threads are “light weight processes” (LWPs). The process has five fundamental parts: code (“text”), data (VM), stack, file I/O, and signal tables. “Heavy-weight processes” (HWPs) have a significant amount of overhead when switching: all the tables have to be flushed from the processor for each task switch. Also, the only way to achieve shared information between HWPs is through pipes and “shared memory”. If a HWP spawns a child HWP using fork(), the only part that is shared is the text.

Sockets are interfaces that can “plug into” each other over a network. Once so “plugged in”, the programs so connected communicate.

Posted in Project 04: FTP based Client Server using Threads and Sockets | 15 Comments

Project 05: Character Device Driver

Modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. For example, one type of module is the device driver, which allows the kernel to access hardware connected to the system. Without modules, we would have to build monolithic kernels and add new functionality directly into the kernel image. Besides having larger kernels, this has the disadvantage of requiring us to rebuild and reboot the kernel every time we want new functionality.

Posted in Character Driver | Tagged , , , , , | 14 Comments

Lint command

sir,

when i use lint command on terminal i get error “command not found”

Posted in Data Structures with C | Leave a comment

MDC project…!!

Completed 4 bit compression….!!

Posted in Uncategorized | Leave a comment

Re: /proc filesystem

Sir, I have implemented /proc file system  successfully.

Posted in Character Driver, Project 11: A Character Device Drivers Based Project | Leave a comment

project status

sir,

i have completed 3 bit and 5 bit and 4 bit data compression and decompression.

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

mdc

working on 3bit decomp….

Posted in Uncategorized | Leave a comment

kernel compilation error

In file included from /usr/src/kernels/linux-2.6.38.8/arch/x86/include/asm/vm86.h:130:0,
from /usr/src/kernels/linux-2.6.38.8/arch/x86/include/asm/processor.h:10,
from /usr/src/kernels/linux-2.6.38.8/arch/x86/include/asm/thread_info.h:22,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:56,
from include/linux/sched.h:57,
from arch/x86/kernel/ptrace.c:8:
/usr/src/kernels/linux-2.6.38.8/arch/x86/include/asm/ptrace.h:146:13: note: previous declaration of ‘syscall_trace_enter’ was here
arch/x86/kernel/ptrace.c:1411:34: error: conflicting types for ‘syscall_trace_leave’
In file included from /usr/src/kernels/linux-2.6.38.8/arch/x86/include/asm/vm86.h:130:0,
from /usr/src/kernels/linux-2.6.38.8/arch/x86/include/asm/processor.h:10,
from /usr/src/kernels/linux-2.6.38.8/arch/x86/include/asm/thread_info.h:22,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:56,
from include/linux/sched.h:57,
from arch/x86/kernel/ptrace.c:8:
/usr/src/kernels/linux-2.6.38.8/arch/x86/include/asm/ptrace.h:147:13: note: previous declaration of ‘syscall_trace_leave’ was here
make[2]: *** [arch/x86/kernel/ptrace.o] Error 1
make[1]: *** [arch/x86/kernel] Error 2
make: *** [arch/x86] Error 2

 

what to do ?

i am using Fedora 17

kernel 3.4.2-4

Posted in Project 1: A Linux Administration based Project | 1 Comment