#include<stdio.h> int sarr[7]; int i,j=200;top=-1; int push(); int pop(); int display(); int ch; int main() { while(j>1) { printf(“enter case\n”); scanf(“%d”,&ch); switch(ch) { case 0:push(); break; case 1:pop(); break; case 3:j=-1; break; default: printf(“wrong selection”); } } } int push() … Continue reading
Basic Driver Implemented –By Ovais Fareed (my blog account is not working)
i have used insmod command to insert lkm module without any errors! Thanks Pravjot Sir ..
#include #define max(a,c,b) a=(b>c)?b:c void max1(int,int,int); int main() { int a=1,c=5,b=4; max(a,c++,b++);//It will make b=5 and c=7.. ?? printf(“By Macro %d\n”,a); printf(“now a= %d\nb= %d\nc=%d\n”,a,b,c); max1(a,b++,c++); return 0; } void max1(int a,int b,int c) { a=(b>c)?b:c; printf(“%d \n”,a); }
#include<stdio.h> #include<sys/types.h> #include<unistd.h> #include<stdlib.h> int main() { pid_t child_pid; child_pid = fork (); if (child_pid > 0) { }else { exit(0); }
Hello, I just googled and found like their are some ownership issue which differentiate Mutex and Binary semaphore. Still I am confused !! (Also where should I use Mutex and where Binary semaphore ??)
unable to understand the working of execl() in the program even though we have implemented.
What is Embedded Linux? Embedded Linux is one of the emerging fields in Embedded Systems allowing the engineers to be flexible in implementation of bigger tasks. It is mingled with day to day life such as mobile phones, home security … Continue reading
-> Load the driver using insmod. This would create the block device files representing the disk on 512 KiB of RAM, with three primary and three logical partitions. –> Check out the automatically created block device files (/dev/sd*). /dev/sdb is … Continue reading