From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <45842874.6080103@domain.hid> Date: Sat, 16 Dec 2006 18:10:12 +0100 From: Hannes Mayer MIME-Version: 1.0 Subject: Re: [Xenomai-help] user space interrupt References: <279913.29791.qm@domain.hid> In-Reply-To: <279913.29791.qm@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mani bhatti Cc: xenomai@xenomai.org 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); > } > Have a look here: http://www.captain.at/xenomai-parallel-port-interrupt.php Ciao, Hannes.