EmbLogic's Blog

Parallel for LED glow implemented

Hello sir, assignment 1 and 2 implemented for parallel port. LED are glowing as per the ASCII of character.

Posted in Uncategorized | Leave a comment

E4: parallel port driver update

LED…….. Glowing…!!!…

Posted in Uncategorized | Leave a comment

E4: Parallel port driver

LED’s are glowing in right fashion… :)

 

Posted in Uncategorized | Leave a comment

Parallel Port….

Successfully glowing led with corresponding binary value….

Posted in Uncategorized | Leave a comment

serial port interrupts

i have successfully registered an interrupt line for serial port interrupt using irq 4 but unable to call handler function .plez help me out…..

Posted in Uncategorized | 1 Comment

EXEC family….

fd = open(“1.txt”,O_CREAT|O_RDONLY);
fd1 = open(“2.txt”,O_CREAT|O_RDONLY);
pid_t p;
p = fork();
if (p == 0)
{
printf(“entering into child process\n”);
execl(“./test”,”test”,fd,fd1,NULL);
}
else
{
printf(“this is parent\n”);
}
return 0;

DOUBT:- the execl statement is not being executed….the program is getting terminated without its execution…can anyone help me wid this……

Posted in Uncategorized | 1 Comment

Install google Chrome For Fast Browsing Internet

use This Command on your terminal to install google chrome

#yum localinstall –nogpgcheck -y https://dl.google.com/linux/direct/google-chrome-stable_current_i386.rpm

Posted in Uncategorized | 1 Comment

TASKLET Status to Pravjot Sir

i have done tasklet in my device driver and it is working fine in driver…. Now working on workqueues……

Posted in Character Driver, Device Drivers | Leave a comment

sorting

what is selection and bubble sorting implemented

//

Posted in Data Structures with C | Leave a comment

q-WAP to find the no of times that a given word(i.e a short string) occurs in a string (i.e a long string!)………..how we can start this programe…………

Posted in Uncategorized | 5 Comments

array assignment-ques10 not getting the meaning of it..?

wap that reads a single word from character array and print it backward..?

is it similar to string reverse(ques9).?

 

 

Posted in Uncategorized | 1 Comment

issue in c program

//just go thru the simple prog

#include
#include
int main()
{
char str[5];
int i;
for(i=0;i<5;i++)
{
printf("\n enter the character :");
scanf("%c",str+i);

}
printf("\n %s\n ", str);

return 0;
}

predict what is the output

if u think output is
"
enter the character :a
enter the character :b
enter the character :c
enter the character :d
enter the character :e
abcde
"

then u r wrong.. :P

output is
enter the character :a
enter the character :
enter the character :b
enter the character :
enter the character :c

a
b
c
"
this is the original output..

can someone please help and elaborate..

Posted in Uncategorized | 2 Comments

issue in basic scanf condition

//just go thru the simple prog

#include
#include
int main()
{
char str[5];
int i;
for(i=0;i<5;i++)
{
printf("\n enter the character :");
scanf("%c",str+i);

}
printf("\n %s\n ", str);

return 0;
}

predict what is the output

if u think output is
"
enter the character :a
enter the character :b
enter the character :c
enter the character :d
enter the character :e
abcde
"

then u r wrong.. :P

output is
enter the character :a
enter the character :
enter the character :b
enter the character :
enter the character :c

a
b
c
"
this is the original output..

can someone please help and elaborate..

Posted in Uncategorized | 2 Comments

what is a compiler

what is the difference between compiler and assembler?

Posted in Data Structures with C | 2 Comments

Problem in KERNEL TIMER

In read_proc() fxn I am calling the timer fxn and in timer fxn I am using in_interrupt and in_atomic macros both are working fine….But when I call the timer fxn using for loop in read_proc, KERNEL crashes and display the bug for NULL pointer……..

Posted in Character Driver, Device Drivers | Leave a comment