Hello sir, assignment 1 and 2 implemented for parallel port. LED are glowing as per the ASCII of character.
Hello sir, assignment 1 and 2 implemented for parallel port. LED are glowing as per the ASCII of character.
LED’s are glowing in right fashion…
Successfully glowing led with corresponding binary value….
i have successfully registered an interrupt line for serial port interrupt using irq 4 but unable to call handler function .plez help me out…..
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……
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
i have done tasklet in my device driver and it is working fine in driver…. Now working on workqueues……
what is selection and bubble sorting implemented
//
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…………
wap that reads a single word from character array and print it backward..?
is it similar to string reverse(ques9).?
//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..
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..
//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..
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..
what is the difference between compiler and assembler?
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……..