NetSurf
Macros | Functions
memory.h File Reference
#include <exec/types.h>
Include dependency graph for memory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ami_memory_chip_alloc(s)   AllocVec(s, MEMF_CHIP)
 
#define ami_memory_chip_free(p)   FreeVec(p)
 
#define ami_memory_clear_free(p)   free(p)
 
#define ami_memory_itempool_create(s)   ((APTR)1)
 
#define ami_memory_itempool_delete(p)   ((void)0)
 
#define ami_memory_itempool_alloc(p, s)   malloc(s)
 
#define ami_memory_itempool_free(p, i, s)   free(i)
 

Functions

void * ami_memory_clear_alloc (size_t size, UBYTE value)
 
void ami_memory_slab_dump (BPTR fh)
 
struct Interrupt * ami_memory_init (void)
 
void ami_memory_fini (struct Interrupt *memhandler)
 

Macro Definition Documentation

◆ ami_memory_chip_alloc

#define ami_memory_chip_alloc (   s)    AllocVec(s, MEMF_CHIP)

Definition at line 29 of file memory.h.

◆ ami_memory_chip_free

#define ami_memory_chip_free (   p)    FreeVec(p)

Definition at line 30 of file memory.h.

◆ ami_memory_clear_free

#define ami_memory_clear_free (   p)    free(p)

Definition at line 39 of file memory.h.

◆ ami_memory_itempool_alloc

#define ami_memory_itempool_alloc (   p,
 
)    malloc(s)

Definition at line 56 of file memory.h.

◆ ami_memory_itempool_create

#define ami_memory_itempool_create (   s)    ((APTR)1)

Definition at line 54 of file memory.h.

◆ ami_memory_itempool_delete

#define ami_memory_itempool_delete (   p)    ((void)0)

Definition at line 55 of file memory.h.

◆ ami_memory_itempool_free

#define ami_memory_itempool_free (   p,
  i,
 
)    free(i)

Definition at line 57 of file memory.h.

Function Documentation

◆ ami_memory_clear_alloc()

void * ami_memory_clear_alloc ( size_t  size,
UBYTE  value 
)

Definition at line 42 of file memory.c.

Referenced by amiga_bitmap_create().

Here is the caller graph for this function:

◆ ami_memory_fini()

void ami_memory_fini ( struct Interrupt *  memhandler)

Definition at line 179 of file memory.c.

Referenced by main().

Here is the caller graph for this function:

◆ ami_memory_init()

struct Interrupt * ami_memory_init ( void  )

Definition at line 165 of file memory.c.

References ami_memory_handler().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_memory_slab_dump()

void ami_memory_slab_dump ( BPTR  fh)

Definition at line 122 of file memory.c.

References ami_memory_slab_alloc_cb(), ami_memory_slab_stats_cb(), and ami_memory_slab_usage_cb().

Referenced by RXHOOKF().

Here is the call graph for this function:
Here is the caller graph for this function: