From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: mani bhatti <imranbashirbhatti@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] user space interrupt
Date: Fri, 08 Dec 2006 17:50:45 +0100 [thread overview]
Message-ID: <457997E5.7010206@domain.hid> (raw)
In-Reply-To: <279913.29791.qm@domain.hid>
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
next prev parent reply other threads:[~2006-12-08 16:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-08 14:01 [Xenomai-help] user space interrupt mani bhatti
2006-12-08 16:50 ` Gilles Chanteperdrix [this message]
2006-12-14 16:27 ` mani bhatti
2006-12-14 16:32 ` Gilles Chanteperdrix
2006-12-15 14:59 ` mani bhatti
2006-12-15 18:18 ` Gilles Chanteperdrix
2006-12-16 17:10 ` Hannes Mayer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=457997E5.7010206@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=imranbashirbhatti@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.