31 lines
615 B
C
Executable File
31 lines
615 B
C
Executable File
/*
|
|
* Memory allocation unit
|
|
*
|
|
* $Id: //BBN_Linux/Branch/Branch_for_Rel_TP_ASEAN_20161216/tclinux_phoenix/apps/public/linux-atm/lane/mem.h#1 $
|
|
*
|
|
*/
|
|
|
|
#ifndef LANE_MEM_H
|
|
#define LANE_MEM_H
|
|
|
|
/* System includes needed for types */
|
|
#include "sys/types.h"
|
|
|
|
/* Local includes needed for types */
|
|
#include "units.h"
|
|
|
|
/* Type definitions */
|
|
|
|
/* Global function prototypes */
|
|
void *mem_alloc(const Unit_t *unit, size_t nbytes);
|
|
void mem_free(const Unit_t *unit, const void *mem);
|
|
|
|
/* Dump memory allocation info, NULL == all */
|
|
void mem_dump(const Unit_t *unit);
|
|
|
|
/* Global data */
|
|
extern const Unit_t mem_unit;
|
|
|
|
#endif
|
|
|