Kernel - Slight reworks to timer code
[tpg/acess2.git] / Modules / Interfaces / UDI / include / udi / mem.h
1 /**
2  * \file udi_mem.h
3  */
4 #ifndef _UDI_MEM_H_
5 #define _UDI_MEM_H_
6
7 /**
8  * \brief Callback type for ::udi_mem_alloc
9  */
10 typedef void udi_mem_alloc_call_t(udi_cb_t *gcb, void *new_mem);
11
12 /**
13  * \brief Allocate memory
14  */
15 extern void udi_mem_alloc(
16         udi_mem_alloc_call_t *callback,
17         udi_cb_t        *gcb,
18         udi_size_t      size,
19         udi_ubit8_t     flags
20         );
21
22 /**
23  * \brief Values for ::udi_mem_alloc \a flags
24  * \{
25  */
26 #define UDI_MEM_NOZERO               (1U<<0)    //!< No need to zero the memory
27 #define UDI_MEM_MOVABLE              (1U<<1)    //!< Globally accessable memory?
28 /**
29  * \}
30  */
31
32 /**
33  * \brief Free allocated memory
34  */
35 extern void udi_mem_free(void *target_mem);
36
37
38 #endif

UCC git Repository :: git.ucc.asn.au