@@ -24,15 +24,15 @@ typedef enum umf_memory_visibility_t {
2424} umf_memory_visibility_t ;
2525
2626/// @brief Protection of the memory allocations
27- typedef enum umf_mem_protection_flags_t {
27+ typedef enum umf_mem_protection_flag_t {
2828 UMF_PROTECTION_NONE = (1 << 0 ), ///< Memory allocations can not be accessed
2929 UMF_PROTECTION_READ = (1 << 1 ), ///< Memory allocations can be read.
3030 UMF_PROTECTION_WRITE = (1 << 2 ), ///< Memory allocations can be written.
3131 UMF_PROTECTION_EXEC = (1 << 3 ), ///< Memory allocations can be executed.
3232 /// @cond
3333 UMF_PROTECTION_MAX // must be the last one
3434 /// @endcond
35- } umf_mem_protection_flags_t ;
35+ } umf_mem_protection_flag_t ;
3636
3737/// @brief A struct containing memory provider specific set of functions
3838typedef struct umf_memory_provider_t * umf_memory_provider_handle_t ;
@@ -101,9 +101,9 @@ umf_result_t umfMemoryProviderFree(umf_memory_provider_handle_t hProvider,
101101/// result in string representation
102102/// @param pError [out] pointer to an integer where the adapter specific error code will be stored
103103///
104- void umfMemoryProviderGetLastNativeError ( umf_memory_provider_handle_t hProvider ,
105- const char * * ppMessage ,
106- int32_t * pError );
104+ umf_result_t
105+ umfMemoryProviderGetLastNativeError ( umf_memory_provider_handle_t hProvider ,
106+ const char * * ppMessage , int32_t * pError );
107107
108108///
109109/// @brief Retrieve recommended page size for a given allocation size.
@@ -217,9 +217,10 @@ umfMemoryProviderCloseIPCHandle(umf_memory_provider_handle_t hProvider,
217217///
218218/// @brief Retrieve name of a given memory \p hProvider.
219219/// @param hProvider handle to the memory provider
220- /// @return pointer to a string containing the name of the \p hProvider
221- ///
222- const char * umfMemoryProviderGetName (umf_memory_provider_handle_t hProvider );
220+ /// @param name [out] pointer to the provider name string
221+ /// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure
222+ umf_result_t umfMemoryProviderGetName (umf_memory_provider_handle_t hProvider ,
223+ const char * * name );
223224
224225///
225226/// @brief Retrieve handle to the last memory provider that returned status other
@@ -231,7 +232,8 @@ const char *umfMemoryProviderGetName(umf_memory_provider_handle_t hProvider);
231232///
232233/// @return Handle to the memory provider
233234///
234- umf_memory_provider_handle_t umfGetLastFailedMemoryProvider (void );
235+ umf_result_t
236+ umfGetLastFailedMemoryProvider (umf_memory_provider_handle_t * provider );
235237
236238///
237239/// @brief Splits a coarse grain allocation into 2 adjacent allocations that
0 commit comments