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_REGISTRY_LIST_PROVIDERS 3DAT "Jul 16, 2004"
9 dat_registry_list_providers \- obtain a list of available pProviders from the
14 typedef struct dat_provider_info {
15 char ia_name[DAT_NAME_MAX_LENGTH];
16 DAT_UINT32 dapl_version_major;
17 DAT_UINT32 dapl_version_minor;
18 DAT_BOOLEAN is_thread_safe;
21 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-ldat\fR [ \fIlibrary\fR\&.\|.\|. ]
22 #include <\fBdat/udat.h\fR>
25 dat_registry_list_providers (
26 IN DAT_COUNT max_to_return,
27 OUT DAT_COUNT *number_entries,
28 OUT DAT_PROVIDER_INFO *(dat_provider_list[])
36 \fB\fImax_to_return\fR\fR
39 Maximum number of entries that can be returned to the Consumer in the
40 \fIdat_provider_list\fR.
46 \fB\fInumber_entries\fR\fR
49 The actual number of entries returned to the Consumer in the
50 \fIdat_provider_list\fR if successful or the number of Providers available.
56 \fB\fIdat_provider_list\fR\fR
59 Points to an array of \fBDAT_PROVIDER_INFO\fR pointers supplied by the
60 Consumer. Each Provider's information will be copied to the destination
67 The \fBdat_registry_list_providers()\fR function allows the Consumer to obtain
68 a list of available Providers from the Static Registry. The information
69 provided is the Interface Adapter name, the uDAPL/kDAPL API version supported,
70 and whether the provided version is thread-safe. The Consumer can examine the
71 attributes to determine which (if any) Interface Adapters it wants to open.
72 This operation has no effect on the Registry itself.
75 The Registry can open an IA using a Provider whose \fIdapl_version_minor\fR is
76 larger than the one the Consumer requests if no Provider entry matches exactly.
77 Therefore, Consumers should expect that an IA can be opened successfully as
78 long as at least one Provider entry returned by
79 \fBdat_registry_list_providers()\fR matches the \fIia_name\fR,
80 \fIdapl_version_major\fR, and \fIis_thread_safe\fR fields exactly, and has a
81 \fIdapl_version_minor\fR that is equal to or greater than the version
85 If the operation is successful, the returned value is \fBDAT_SUCCESS\fR and
86 \fInumber_entries\fR indicates the number of entries filled by the registry in
87 \fIdat_provider_list\fR.
90 If the operation is not successful, then \fInumber_entries\fR returns the
91 number of entries in the registry. Consumers can use this return to allocate
92 \fIdat_provider_list\fR large enough for the registry entries. This number is
93 just a snapshot at the time of the call and may be changed by the time of the
94 next call. If the operation is not successful, then the content of
95 \fIdat_provider_list\fR is not defined.
98 If \fIdat_provider_list\fR is too small, including pointing to \fINULL\fR for
99 the registry entries, then the operation fails with the return
100 \fBDAT_INVALID_PARAMETER\fR.
105 \fB\fBDAT_SUCCESS\fR\fR
108 The operation was successful.
114 \fB\fBDAT_INVALID_PARAMETER\fR\fR
117 Invalid parameter. For example, \fIdat_provider_list\fR is too small or
124 \fB\fBDAT_INTERNAL_ERROR\fR\fR
127 Internal error. The DAT static registry is missing.
133 \fBDAT_NAME_MAX_LENGTH\fR includes the null character for string termination.
137 See \fBattributes\fR(5) for descriptions of the following attributes:
145 ATTRIBUTE TYPE ATTRIBUTE VALUE
147 Interface Stability Standard: uDAPL, 1.1, 1.2
155 \fBlibdat\fR(3LIB), \fBattributes\fR(5)