Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
backend.c File Reference

Go to the source code of this file.

Description

Lumiera Backend: implementation of global initialisation and services.

Definition in file backend.c.

#include "include/logging.h"
#include "lib/safeclib.h"
#include "lib/tmpbuf.h"
#include "lib/mpool.h"
#include "backend/backend.h"
#include "common/config.h"
#include "backend/filehandlecache.h"
#include "backend/filedescriptor.h"
#include "backend/filedescriptorregistry.h"
#include "backend/mmapcache.h"
#include "backend/threadpool.h"
#include "backend/resourcecollector.h"
#include <unistd.h>
#include <sys/resource.h>

Functions

void lumiera_backend_destroy (void)
 
int lumiera_backend_init (void)
 
static enum lumiera_resource_try lumiera_backend_mpool_purge (enum lumiera_resource_try itr, void *data, void *context)
 
static void lumiera_backend_resourcecollector_register_mpool (MPool self)
 
static void lumiera_backend_resourcecollector_unregister_mpool (MPool self)
 

Variables

size_t lumiera_backend_pagesize
 

Function Documentation

static enum lumiera_resource_try lumiera_backend_mpool_purge ( enum lumiera_resource_try  itr,
void *  data,
void *  context 
)
static

Definition at line 152 of file backend.c.

References LUMIERA_RESOURCE_NONE.

Referenced by lumiera_backend_resourcecollector_register_mpool().

+ Here is the caller graph for this function:

static void lumiera_backend_resourcecollector_register_mpool ( MPool  self)
static

Definition at line 162 of file backend.c.

References lumiera_backend_mpool_purge(), LUMIERA_RESOURCE_MEMORY, and lumiera_resourcecollector_register_handler().

Referenced by lumiera_backend_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lumiera_backend_resourcecollector_unregister_mpool ( MPool  self)
static

Definition at line 169 of file backend.c.

References lumiera_resourcehandler_unregister().

Referenced by lumiera_backend_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int lumiera_backend_init ( void  )

Definition at line 63 of file backend.c.

References lumiera_backend_pagesize, lumiera_backend_resourcecollector_register_mpool(), lumiera_backend_resourcecollector_unregister_mpool(), lumiera_config_number_get(), lumiera_config_setdefault(), lumiera_filecreate_mutex, lumiera_filedescriptorregistry_init(), lumiera_filehandlecache_new(), lumiera_free(), lumiera_malloc(), lumiera_mmapcache_new(), lumiera_mutex_init(), lumiera_resourcecollector_init(), lumiera_resourcecollector_run(), lumiera_safeclib_set_resourcecollector(), lumiera_threadpool_init(), lumiera_tmpbuf_snprintf(), mpool_destroy_hook, mpool_free_hook, mpool_init_hook, mpool_malloc_hook, and TRACE().

Referenced by TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lumiera_backend_destroy ( void  )

Definition at line 129 of file backend.c.

References lumiera_filecreate_mutex, lumiera_filedescriptorregistry_destroy(), lumiera_filehandlecache_delete(), lumiera_mmapcache_delete(), lumiera_mutex_destroy(), lumiera_resourcecollector_destroy(), lumiera_safeclib_set_resourcecollector(), lumiera_threadpool_destroy(), mpool_destroy_hook, mpool_free_hook, mpool_init_hook, mpool_malloc_hook, NULL, and TRACE().

Referenced by TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

size_t lumiera_backend_pagesize

Definition at line 59 of file backend.c.

Referenced by lumiera_backend_init().