Hi Gilles and all
 Thanks for ur help.The error i get after replacing printf with 
 perror("iopl") is "iopl: Operation not permitted".
 Please suggest me some solution for this.Thanks again.

Gilles Chanteperdrix <[EMAIL PROTECTED]> wrote: mani bhatti wrote:
> Hi all
> i am trying to access parallel port form a user space task.i have copied
> code from an example which runs parallel port in interrupt mode but the
> problem is that when i run program i get following message
> 
> "iopl err"
> 
> due to this piece of  code
>        
> // ask for permission to access the parallel port from user-space
>         if (iopl(3)) {
>                 printf("iopl err\n");
>                 exit(1);
>         }
> 
> 
> i am working with interrupts for the first time and have no idea why
> this is happening .i am attaching the code also.Thanks all for the great
> help.

What is the error message if you replace printf("iopl err\n") with
perror("iopl") ?

-- 
                                                 Gilles Chanteperdrix


 
---------------------------------
Need a quick answer? Get one in minutes from people who know. Ask your question 
on Yahoo! Answers.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to