EmbLogic's Blog

Author Archives: mks

lsmod Analysis

lsmod has column used i.e module using the lkm (that particular lkm) . My system showing value -1 for module ipv6 then what -1 signifies ? Used = 0 means no module using this lkm

Posted in Uncategorized | Tagged | Leave a comment

Hot Swap In Linux kernel

What is the difference between hot swap and hot plug ? How it is implemented in linux kernel 2.4.x ? Is linux kernel 2.4.x supports hot plug also ?

Posted in Uncategorized | Tagged | 3 Comments

Platform Driver !!

Driver Model (USB,I2C) enumerate device and bind it with driver .USB and PCI are hotplugged device and they have capability to notify OS when lets say USB (pendrive )attach.But in SOC’s based , a lot of inbuilt peripherals like host … Continue reading →

Posted in Uncategorized | 1 Comment

Kmalloc failed to allocate ?

Lets say we have device mobile and we start an application ,our application connects to our driver and in driver level lets say we allocate some memory using kmalloc with flag=GFP_KERNEL ,now if memory allocation fail in each time so … Continue reading →

1 Comment

Inside structure declaration of variable of same type is not allowed

struct node { struct node x; //not allowed struct node *head; //allowed }; Why does we can declare a pointer of same type but not a variable of same type?

Posted in Uncategorized | 1 Comment

Alternative method of newline

Q. How to print output in multiple line without using \n character? Ans. printf(“\x0a”);

Posted in Uncategorized | Leave a comment