EXCEPTIONS
SEE ALSO
Addconfig Dev
BUGS
SYSTEMILIBRARIESI
NAME
EXPANS
I0
NI
SETCURRENTBINDING
SetCurrentBinding
-
sets static board configuration area
SYNOPSIS
SetCurrentBinding( currentBinding, size
)
A0
DO:16
FUNCTION
This function records the contents of the "currentBinding" structure
in a private place.
It
may be read via GetCurrentBinding(
).
This
is
really
a
kludge, but
it
is the only way to pass extra arguments to a
newly configured device.
A
CurrentBinding structure has the name of the currently loaded file,
the product string that was associated with
this
driver, and a pointer
to the head of a singly linked list of ConfigDev structures (linked
through the
cdNextCD field).
Many devices may not need this information; they have hard coded
into themselves their manufacture number.
It
is recommended that
you at least check that you can deal with the product code in the
linked ConfigDev structures.
INPUTS
currentBinding
-
a pointer to a CurrentBinding structure
size
-
the size of the user's binddriver structure.
No
more than this
much data will be copied. If size
is
larger than the library's ideal
CurrentBinding size, then the structure will be null padded.
RESULTS
EXAMPLES
EXCEPTIONS