@@ -305,7 +305,7 @@ static void lifetime_free(struct vlinear_heap *heap, void *ptr)
305305 * @param vr Pointer to the virtual region instance.
306306 * @param ptr Pointer to the memory to free.
307307 */
308- void vregion_free (struct vregion * vr , void * ptr )
308+ void z_impl_vregion_free (struct vregion * vr , void * ptr )
309309{
310310 if (!vr || !ptr )
311311 return ;
@@ -329,7 +329,7 @@ void vregion_free(struct vregion *vr, void *ptr)
329329
330330 k_mutex_unlock (& vr -> lock );
331331}
332- EXPORT_SYMBOL (vregion_free );
332+ EXPORT_SYMBOL (z_impl_vregion_free );
333333
334334/**
335335 * @brief Allocate memory type from the virtual region.
@@ -341,8 +341,8 @@ EXPORT_SYMBOL(vregion_free);
341341 *
342342 * @return void* Pointer to the allocated memory, or NULL on failure.
343343 */
344- void * vregion_alloc_align (struct vregion * vr , enum vregion_mem_type type ,
345- size_t size , size_t alignment )
344+ void * z_impl_vregion_alloc_align (struct vregion * vr , enum vregion_mem_type type ,
345+ size_t size , size_t alignment )
346346{
347347 void * p ;
348348
@@ -370,7 +370,7 @@ void *vregion_alloc_align(struct vregion *vr, enum vregion_mem_type type,
370370
371371 return p ;
372372}
373- EXPORT_SYMBOL (vregion_alloc_align );
373+ EXPORT_SYMBOL (z_impl_vregion_alloc_align );
374374
375375/**
376376 * @brief Allocate memory from the virtual region.
@@ -379,17 +379,17 @@ EXPORT_SYMBOL(vregion_alloc_align);
379379 * @param[in] size Size of the allocation.
380380 * @return void* Pointer to the allocated memory, or NULL on failure.
381381 */
382- void * vregion_alloc (struct vregion * vr , enum vregion_mem_type type , size_t size )
382+ void * z_impl_vregion_alloc (struct vregion * vr , enum vregion_mem_type type , size_t size )
383383{
384- return vregion_alloc_align (vr , type , size , 0 );
384+ return z_impl_vregion_alloc_align (vr , type , size , 0 );
385385}
386- EXPORT_SYMBOL (vregion_alloc );
386+ EXPORT_SYMBOL (z_impl_vregion_alloc );
387387
388- void * vregion_alloc_coherent (struct vregion * vr , enum vregion_mem_type type , size_t size )
388+ void * z_impl_vregion_alloc_coherent (struct vregion * vr , enum vregion_mem_type type , size_t size )
389389{
390390 size = ALIGN_UP (size , CONFIG_DCACHE_LINE_SIZE );
391391
392- void * p = vregion_alloc_align (vr , type , size , CONFIG_DCACHE_LINE_SIZE );
392+ void * p = z_impl_vregion_alloc_align (vr , type , size , CONFIG_DCACHE_LINE_SIZE );
393393
394394 if (!p )
395395 return NULL ;
@@ -398,15 +398,16 @@ void *vregion_alloc_coherent(struct vregion *vr, enum vregion_mem_type type, siz
398398
399399 return sys_cache_uncached_ptr_get (p );
400400}
401+ EXPORT_SYMBOL (z_impl_vregion_alloc_coherent );
401402
402- void * vregion_alloc_coherent_align (struct vregion * vr , enum vregion_mem_type type ,
403- size_t size , size_t alignment )
403+ void * z_impl_vregion_alloc_coherent_align (struct vregion * vr , enum vregion_mem_type type ,
404+ size_t size , size_t alignment )
404405{
405406 if (alignment < CONFIG_DCACHE_LINE_SIZE )
406407 alignment = CONFIG_DCACHE_LINE_SIZE ;
407408 size = ALIGN_UP (size , CONFIG_DCACHE_LINE_SIZE );
408409
409- void * p = vregion_alloc_align (vr , type , size , alignment );
410+ void * p = z_impl_vregion_alloc_align (vr , type , size , alignment );
410411
411412 if (!p )
412413 return NULL ;
@@ -415,6 +416,7 @@ void *vregion_alloc_coherent_align(struct vregion *vr, enum vregion_mem_type typ
415416
416417 return sys_cache_uncached_ptr_get (p );
417418}
419+ EXPORT_SYMBOL (z_impl_vregion_alloc_coherent_align );
418420
419421/**
420422 * @brief Log virtual region memory usage.
0 commit comments