EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: InitHooks
From: Marty Kraimer <[email protected]>
To: [email protected]
Date: Mon, 14 Jul 1997 15:24:46 -0500
Benjamin Franksen wrote:
> 
> Hello everybody,
> 
> I propose a (minor) change to the next EPICS release. Current problems
> with the new lanGpib driver suggest that an entry in the InitHooks
> function should be made in that calls the driver at some later point
> during IOC init. So far so good. But in our control system there are
> already some standard entries in this InitHooks function. And InitHooks
> only exists once.
> 
> So what one does is to 'ifdef' parts of InitHook depending on what has
> to be called on each IOC. In my point of view this is ugly and
> contradicts the modular design of EPICS which otherwise allows each IOC
> to be configured individually by modifying the startup file while
> keeping the common base functionality consistent.
> 
> Solution: A function
> 
> void registerInitHook(void (*hookFunction)(int))
> 
> callable (multiple times) from the startup file before iocInit. It
> chains together a series of initHook functions.


Note that you can do this without changing base. Just provide a routine:

void initHooks(int callNumber) {localInitHooks(callNumber); }

and let localInitHooks do what you suggest.

Marty Kraimer

Replies:
Re: InitHooks Benjamin Franksen
References:
InitHooks Benjamin Franksen

Navigate by Date:
Prev: RE: InitHooks Jeff Hill
Next: RE: Building EPICS on HP_UX 10.2 Noboru Yamamoto
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Building EPICS on HP_UX 10.2 Ralph Lange
Next: Re: InitHooks Benjamin Franksen
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
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 ·