libmetal
Loading...
Searching...
No Matches
lib
alloc.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
/*
8
* @file alloc.h
9
* @brief Memory allocation handling primitives for libmetal.
10
*/
11
12
#ifndef __METAL_ALLOC__H__
13
#define __METAL_ALLOC__H__
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
30
static
inline
void
*
metal_allocate_memory
(
unsigned
int
size);
31
37
static
inline
void
metal_free_memory
(
void
*ptr);
38
39
#include <metal/system/@PROJECT_SYSTEM@/alloc.h>
40
43
#ifdef __cplusplus
44
}
45
#endif
46
47
#endif
/* __METAL_ALLOC__H__ */
metal_allocate_memory
static void * metal_allocate_memory(unsigned int size)
allocate requested memory size return a pointer to the allocated memory
metal_free_memory
static void metal_free_memory(void *ptr)
free the memory previously allocated
Generated on Thu Jan 19 2023 00:00:00 for libmetal by
1.9.6