OpenVPN
Data Fields
gc_arena Struct Reference

Garbage collection arena used to keep track of dynamically allocated memory. More...

#include <buffer.h>

Collaboration diagram for gc_arena:
Collaboration graph
[legend]

Data Fields

struct gc_entrylist
 First element of the linked list of gc_entry structures. More...
 
struct gc_entry_speciallist_special
 

Detailed Description

Garbage collection arena used to keep track of dynamically allocated memory.

This structure contains a linked list of gc_entry structures. When a block of memory is allocated using the gc_malloc() function, the allocation is registered in the function's gc_arena argument. All the dynamically allocated memory registered in a gc_arena can be freed using the gc_free() function.

Definition at line 116 of file buffer.h.

Field Documentation

◆ list

struct gc_entry* gc_arena::list

◆ list_special

struct gc_entry_special* gc_arena::list_special

Definition at line 120 of file buffer.h.

Referenced by gc_addspecial(), gc_free(), gc_init(), gc_realloc(), and x_gc_freespecial().


The documentation for this struct was generated from the following file: