@@ -80,7 +80,7 @@ static struct sof_fast_get_entry *fast_get_find_entry(struct sof_fast_get_data *
8080 return NULL ;
8181}
8282
83- const void * fast_get (struct k_heap * heap , const void * dram_ptr , size_t size )
83+ const void * z_impl_fast_get (struct k_heap * heap , const void * dram_ptr , size_t size )
8484{
8585 struct sof_fast_get_data * data = & fast_get_data ;
8686 struct sof_fast_get_entry * entry ;
@@ -131,7 +131,7 @@ const void *fast_get(struct k_heap *heap, const void *dram_ptr, size_t size)
131131
132132 return ret ;
133133}
134- EXPORT_SYMBOL (fast_get );
134+ EXPORT_SYMBOL (z_impl_fast_get );
135135
136136static struct sof_fast_get_entry * fast_put_find_entry (struct sof_fast_get_data * data ,
137137 const void * sram_ptr )
@@ -146,7 +146,7 @@ static struct sof_fast_get_entry *fast_put_find_entry(struct sof_fast_get_data *
146146 return NULL ;
147147}
148148
149- void fast_put (struct k_heap * heap , const void * sram_ptr )
149+ void z_impl_fast_put (struct k_heap * heap , const void * sram_ptr )
150150{
151151 struct sof_fast_get_data * data = & fast_get_data ;
152152 struct sof_fast_get_entry * entry ;
@@ -168,4 +168,16 @@ void fast_put(struct k_heap *heap, const void *sram_ptr)
168168 entry ? entry -> size : 0 , entry ? entry -> refcount : 0 );
169169 k_spin_unlock (& data -> lock , key );
170170}
171- EXPORT_SYMBOL (fast_put );
171+ EXPORT_SYMBOL (z_impl_fast_put );
172+
173+ #ifdef CONFIG_USERSPACE
174+ void z_vrfy_fast_put (struct k_heap * heap , const void * sram_ptr )
175+ {
176+ z_impl_fast_put (heap , sram_ptr );
177+ }
178+
179+ const void * z_vrfy_fast_get (struct k_heap * heap , const void * dram_ptr , size_t size )
180+ {
181+ return z_impl_fast_get (heap , dram_ptr , size );
182+ }
183+ #endif
0 commit comments