Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Linux and EPICS threads
From: "Mark Rivers" <rivers@cars.uchicago.edu>
To: <tech-talk@aps.anl.gov>
Date: Wed, 30 Jul 2003 00:07:06 -0500
I am writing device support on Linux for a parallel port device.  To talk to the parallel port I use iopl(3) to set the I/O privilege level of the task, and inb() and outb() to write to the I/O ports.  This works fine before iocInit.  After iocInit the code is running in a new epicsThread, and I find that it has "forgotten" the privilege level, and that I need to call iopl(3) again.  This is very inconvenient, because the new thread should not even need to know what kind of device it is talking to.

Is this the correct behavior, and is there a way to change it?  I thought that the the ioc was running as a single task in which all threads should have the same privileges.  Is there a way to make the new threads inherit the privileges from the parent?

Thanks,
Mark Rivers


Replies:
Re: Linux and EPICS threads Andrew Johnson
RE: Linux and EPICS threads Jun-ichi Odagiri

Navigate by Date:
Prev: Re: who maintains libezca ? Till Straumann
Next: OMS VME58 card and user definable I/O Rok Sabjan
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: who maintains libezca ? Till Straumann
Next: Re: Linux and EPICS threads Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·