2 .\" This manual page is derived from the DAT/uDAPL 1.2 specification.
3 .\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH DAT_PROVIDER_INIT 3DAT "Jul 16, 2004"
9 dat_provider_init \- locate the Provider in the Static Registry
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-ldat\fR [ \fIlibrary\fR\&.\|.\|. ]
14 #include <\fBdat/udat.h\fR>
18 IN const DAT_PROVIDER_INFO *provider_info,
19 IN const char * instance_data
27 \fB\fIprovider_info\fR\fR
30 The information that was provided by the Consumer to locate the Provider in the
37 \fB\fIinstance_data\fR\fR
40 The instance data string obtained from the entry found in the Static Registry
47 A constructor the Registry calls on a Provider before the first call to
48 \fBdat_ia_open\fR(3DAT) for a given IA name when the Provider is auto-loaded.
49 An application that explicitly loads a Provider on its own can choose to use
50 \fBdat_provider_init()\fR just as the Registry would have done for an
54 The Provider's implementation of this method must call
55 \fBdat_registry_add_provider\fR(3DAT), using the IA name in the
56 \fBprovider_info.ia_name\fR field, to register itself with the Dynamic
57 Registry. The implementation must not register other IA names at this time.
58 Otherwise, the Provider is free to perform any initialization it finds useful
62 This method is called before the first call to \fBdat_ia_open()\fR for a given
63 IA name after one of the following has occurred:
68 The Provider library was loaded into memory.
74 The Registry called \fBdat_provider_fini\fR(3DAT) for that IA name.
80 The Provider called \fBdat_registry_remove_provider\fR(3DAT) for that IA name
81 (but it is still the Provider indicated in the Static Registry).
85 If this method fails, it should ensure that it does not leave its entry in the
90 No values are returned.
94 See \fBattributes\fR(5) for descriptions of the following attributes:
102 ATTRIBUTE TYPE ATTRIBUTE VALUE
104 Interface Stability Standard: uDAPL, 1.1, 1.2
112 \fBdat_ia_open\fR(3DAT), \fBdat_provider_fini\fR(3DAT),
113 \fBdat_registry_add_provider\fR(3DAT),
114 \fBdat_registry_remove_provider\fR(3DAT), \fBlibdat\fR(3LIB),