Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions
ngx_palloc.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
Include dependency graph for ngx_palloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ngx_pool_cleanup_s
struct  ngx_pool_large_s
struct  ngx_pool_data_t
struct  ngx_pool_s
struct  ngx_pool_cleanup_file_t

Macros

#define NGX_MAX_ALLOC_FROM_POOL   (ngx_pagesize - 1)
#define NGX_DEFAULT_POOL_SIZE   (16 * 1024)
#define NGX_POOL_ALIGNMENT   16
#define NGX_MIN_POOL_SIZE

Typedefs

typedef void(* ngx_pool_cleanup_pt )(void *data)
typedef struct ngx_pool_cleanup_s ngx_pool_cleanup_t
typedef struct ngx_pool_large_s ngx_pool_large_t

Functions

void * ngx_alloc (size_t size, ngx_log_t *log)
void * ngx_calloc (size_t size, ngx_log_t *log)
ngx_pool_tngx_create_pool (size_t size, ngx_log_t *log)
void ngx_destroy_pool (ngx_pool_t *pool)
void ngx_reset_pool (ngx_pool_t *pool)
void * ngx_palloc (ngx_pool_t *pool, size_t size)
void * ngx_pnalloc (ngx_pool_t *pool, size_t size)
void * ngx_pcalloc (ngx_pool_t *pool, size_t size)
void * ngx_pmemalign (ngx_pool_t *pool, size_t size, size_t alignment)
ngx_int_t ngx_pfree (ngx_pool_t *pool, void *p)
ngx_pool_cleanup_tngx_pool_cleanup_add (ngx_pool_t *p, size_t size)
void ngx_pool_run_cleanup_file (ngx_pool_t *p, ngx_fd_t fd)
void ngx_pool_cleanup_file (void *data)
void ngx_pool_delete_file (void *data)

Macro Definition Documentation

#define NGX_DEFAULT_POOL_SIZE   (16 * 1024)

Definition at line 22 of file ngx_palloc.h.

#define NGX_MAX_ALLOC_FROM_POOL   (ngx_pagesize - 1)

Definition at line 20 of file ngx_palloc.h.

#define NGX_MIN_POOL_SIZE
Value:

Definition at line 25 of file ngx_palloc.h.

#define NGX_POOL_ALIGNMENT   16

Definition at line 24 of file ngx_palloc.h.

Typedef Documentation

typedef void(* ngx_pool_cleanup_pt)(void *data)

Definition at line 30 of file ngx_palloc.h.

Definition at line 32 of file ngx_palloc.h.

Definition at line 41 of file ngx_palloc.h.

Function Documentation

void* ngx_alloc ( size_t  size,
ngx_log_t log 
)

Definition at line 18 of file ngx_alloc.c.

Here is the caller graph for this function:

void* ngx_calloc ( size_t  size,
ngx_log_t log 
)

Definition at line 35 of file ngx_alloc.c.

Here is the caller graph for this function:

ngx_pool_t* ngx_create_pool ( size_t  size,
ngx_log_t log 
)

Definition at line 17 of file ngx_palloc.c.

Here is the caller graph for this function:

void ngx_destroy_pool ( ngx_pool_t pool)

Definition at line 45 of file ngx_palloc.c.

Here is the caller graph for this function:

void* ngx_palloc ( ngx_pool_t pool,
size_t  size 
)

Definition at line 117 of file ngx_palloc.c.

Here is the caller graph for this function:

void* ngx_pcalloc ( ngx_pool_t pool,
size_t  size 
)

Definition at line 301 of file ngx_palloc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_pfree ( ngx_pool_t pool,
void *  p 
)

Definition at line 281 of file ngx_palloc.c.

Here is the caller graph for this function:

void* ngx_pmemalign ( ngx_pool_t pool,
size_t  size,
size_t  alignment 
)

Definition at line 256 of file ngx_palloc.c.

Here is the call graph for this function:

void* ngx_pnalloc ( ngx_pool_t pool,
size_t  size 
)

Definition at line 147 of file ngx_palloc.c.

Here is the caller graph for this function:

ngx_pool_cleanup_t* ngx_pool_cleanup_add ( ngx_pool_t p,
size_t  size 
)

Definition at line 315 of file ngx_palloc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_pool_cleanup_file ( void *  data)

Definition at line 367 of file ngx_palloc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_pool_delete_file ( void *  data)

Definition at line 382 of file ngx_palloc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_pool_run_cleanup_file ( ngx_pool_t p,
ngx_fd_t  fd 
)

Definition at line 346 of file ngx_palloc.c.

Here is the call graph for this function:

void ngx_reset_pool ( ngx_pool_t pool)

Definition at line 97 of file ngx_palloc.c.