Direct Access Transport Library Functions
datregistryaddprovider(3DAT)
NAME
datregistryaddprovider - declare the Provider with the
Dynamic Registry
SYNOPSIS
cc [ flag... ] file... -ldat [ library... ]
#include
DATRETURN
datregistryaddprovider (
IN const DATPROVIDER *provider,
IN const DATPROVIDERINFO *providerinfo
)
PARAMETERS
provider Self-description of a Provider.
providerinfo Attributes of the Provider.
DESCRIPTION
The Provider declares itself with the Dynamic Registry. Note
that the caller can choose to register itself multiple
times, for example once for each port. The choice of what to
virtualize is up to the Provider. Each registration provides
an Interface Adapter to DAT. Each Provider must have a
unique name.
The same IA Name cannot be added multiple times. An attempt
to register the same IA Name again results in an error with
the return value DATPROVIDERALREADYREGISTERED.
The contents of providerinfo must be the same as those the
Consumer uses in the call to datiaopen(3DAT) directly, or
the ones provided indirectly defined by the header files
with which the Consumer compiled.
RETURN VALUES
DATSUCES
The operation was successful.
DATINSUFICIENTRESOURCES
The maximum number of Providers was already registered.
SunOS 5.11 Last change: 16 Jul 2004 1
Direct Access Transport Library Functions
datregistryaddprovider(3DAT)
DATINVALIDPARAMETER
Invalid parameter.
DATPROVIDERALREADYREGISTERED
Invalid or nonunique name.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Standard: uDAPL, 1.1, 1.2
MT-Level
SEE ALSO
datiaopen(3DAT), libdat(3LIB), attributes(5)
SunOS 5.11 Last change: 16 Jul 2004 2
Direct Access Transport Library Functions
datregistryaddprovider(3DAT)
SunOS 5.11 Last change: 16 Jul 2004 3
|