2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
5 Desc: Lock the CurrentBinding structure.
8 #include "expansion_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <proto/expansion.h>
16 AROS_LH0(void, ObtainConfigBinding
,
22 struct ExpansionBase
*, ExpansionBase
, 20, Expansion
)
25 ObtainConfigBinding() gives you permission to bind drivers
26 to a ConfigDev structure. It exists so that two drivers
27 at once do not try and bind the same ConfigDev structures
30 Since most of the data required to bind drivers is statically
31 kept, so you must lock out other users from accessing the
32 structures at the same time.
34 This call is based on the Exec SignalSemaphores, and will
35 block until it is safe to proceed.
41 You will have the lock on the CurrentBindings. Please finish
42 as quickly as you can.
51 ReleaseConfigBinding()
56 27-11-96 digulla automatically created from
57 expansion_lib.fd and clib/expansion_protos.h
59 *****************************************************************************/
63 ObtainSemaphore(&IntExpBase(ExpansionBase
)->BindSemaphore
);
66 } /* ObtainConfigBinding */