Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dat_registry_list_providers(3dat) [opensolaris man page]

dat_registry_list_providers(3DAT)		     Direct Access Transport Library Functions			 dat_registry_list_providers(3DAT)

NAME
dat_registry_list_providers - obtain a list of available pProviders from the Static Registry SYNOPSIS
typedef struct dat_provider_info { char ia_name[DAT_NAME_MAX_LENGTH]; DAT_UINT32 dapl_version_major; DAT_UINT32 dapl_version_minor; DAT_BOOLEAN is_thread_safe; } DAT_PROVIDER_INFO; cc [ flag... ] file... -ldat [ library... ] #include <dat/udat.h> DAT_RETURN dat_registry_list_providers ( IN DAT_COUNT max_to_return, OUT DAT_COUNT *number_entries, OUT DAT_PROVIDER_INFO *(dat_provider_list[]) ) PARAMETERS
max_to_return Maximum number of entries that can be returned to the Consumer in the dat_provider_list. number_entries The actual number of entries returned to the Consumer in the dat_provider_list if successful or the number of Providers available. dat_provider_list Points to an array of DAT_PROVIDER_INFO pointers supplied by the Consumer. Each Provider's information will be copied to the destination specified. DESCRIPTION
The dat_registry_list_providers() function allows the Consumer to obtain a list of available Providers from the Static Registry. The infor- mation provided is the Interface Adapter name, the uDAPL/kDAPL API version supported, and whether the provided version is thread-safe. The Consumer can examine the attributes to determine which (if any) Interface Adapters it wants to open. This operation has no effect on the Registry itself. The Registry can open an IA using a Provider whose dapl_version_minor is larger than the one the Consumer requests if no Provider entry matches exactly. Therefore, Consumers should expect that an IA can be opened successfully as long as at least one Provider entry returned by dat_registry_list_providers() matches the ia_name, dapl_version_major, and is_thread_safe fields exactly, and has a dapl_version_minor that is equal to or greater than the version requested. If the operation is successful, the returned value is DAT_SUCCESS and number_entries indicates the number of entries filled by the registry in dat_provider_list. If the operation is not successful, then number_entries returns the number of entries in the registry. Consumers can use this return to allocate dat_provider_list large enough for the registry entries. This number is just a snapshot at the time of the call and may be changed by the time of the next call. If the operation is not successful, then the content of dat_provider_list is not defined. If dat_provider_list is too small, including pointing to NULL for the registry entries, then the operation fails with the return DAT_INVALID_PARAMETER. RETURN VALUES
DAT_SUCCESS The operation was successful. DAT_INVALID_PARAMETER Invalid parameter. For example, dat_provider_list is too small or NULL. DAT_INTERNAL_ERROR Internal error. The DAT static registry is missing. USAGE
DAT_NAME_MAX_LENGTH includes the null character for string termination. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard: uDAPL, 1.1, 1.2 | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libdat(3LIB), attributes(5) SunOS 5.11 16 Jul 2004 dat_registry_list_providers(3DAT)

Check Out this Related Man Page

dat_provider_init(3DAT) 			     Direct Access Transport Library Functions				   dat_provider_init(3DAT)

NAME
dat_provider_init - locate the Provider in the Static Registry SYNOPSIS
cc [ flag... ] file... -ldat [ library... ] #include <dat/udat.h> void dat_provider_init ( IN const DAT_PROVIDER_INFO *provider_info, IN const char * instance_data ) PARAMETERS
provider_info The information that was provided by the Consumer to locate the Provider in the Static Registry. instance_data The instance data string obtained from the entry found in the Static Registry for the Provider. DESCRIPTION
A constructor the Registry calls on a Provider before the first call to dat_ia_open(3DAT) for a given IA name when the Provider is auto- loaded. An application that explicitly loads a Provider on its own can choose to use dat_provider_init() just as the Registry would have done for an auto-loaded Provider. The Provider's implementation of this method must call dat_registry_add_provider(3DAT), using the IA name in the provider_info.ia_name field, to register itself with the Dynamic Registry. The implementation must not register other IA names at this time. Otherwise, the Provider is free to perform any initialization it finds useful within this method. This method is called before the first call to dat_ia_open() for a given IA name after one of the following has occurred: o The Provider library was loaded into memory. o The Registry called dat_provider_fini(3DAT) for that IA name. o The Provider called dat_registry_remove_provider(3DAT) for that IA name (but it is still the Provider indicated in the Static Reg- istry). If this method fails, it should ensure that it does not leave its entry in the Dynamic Registry. RETURN VALUES
No values are returned. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard: uDAPL, 1.1, 1.2 | +-----------------------------+-----------------------------+ |MT-Level | | +-----------------------------+-----------------------------+ SEE ALSO
dat_ia_open(3DAT), dat_provider_fini(3DAT), dat_registry_add_provider(3DAT), dat_registry_remove_provider(3DAT), libdat(3LIB), attributes(5) SunOS 5.10 16 Jul 2004 dat_provider_init(3DAT)
Man Page