Hello Marty (and all the others),
another proposal (suggested by Goetz Pfeiffer): Currently there is a
'Symb' device support for ai, ao, longin, longout, stringin and
stringout records. Their purpose is to associate the records VALue with
some globally visible VxWorks variable through the use of VxWorks'
symbol table. But the implementation is rather crude: Neither is there
any protection against race conditions while copying the value, nor is
there the possibility to supply the name of the symbol independently
from the record's name resp. naming convention.
Both can be mended easily:
(1) To protect the data transport, simply add some
intLock()
...
intUnlock()
pairs around the critical section, which is for example in devAiSymb the
single line
pai->val = *(double *)(pai->dpvt);
(2) To enable record name independent symbol names, check the hw link if
it equals INST_IO. If yes, get the symbol name from the link, otherwise
(ie the link is CONSTANT) use the previous algorithm as a fallback
method.
I'd volunteer to code the proposed changes, if there is interest and
there are no objections to them.
Ben
--
The Notorious Neb Nesknarf
-----------------------------------------------------------------------
BESSY II
Berliner Elektronenspeicherring- phone: +49 30 6392-4865
Gesellschaft fuer Synchrotronstrahlung fax: +49 30 6392-4859
Rudower Chaussee 5 email: [email protected]
D-12489 Berlin web: http://www.bessy.de/~franksen
-----------------------------------------------------------------------
HOME: Benjamin Franksen, Fichtestr. 19a, D-10967 Berlin, +49(30)6913756
-----------------------------------------------------------------------
- Replies:
- Re: Proposal for boosted Symb device support Andrew Johnson
- Re: Proposal for boosted Symb device support Marty Kraimer
- Navigate by Date:
- Prev:
Proposal for change in bo record Benjamin Franksen
- Next:
Re: Proposal for boosted Symb device support Andrew Johnson
- Index:
1994
1995
1996
1997
<1998>
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:
Proposal for change in bo record Benjamin Franksen
- Next:
Re: Proposal for boosted Symb device support Andrew Johnson
- Index:
1994
1995
1996
1997
<1998>
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
|