Lumiera  0.pre.03
»edityourfreedom«
backend.h File Reference

Go to the source code of this file.

Description

Lumiera Backend: global initialisation and definitions.

Definition in file backend.h.

#include "lib/mutex.h"
#include <nobug.h>

Functions

void lumiera_backend_destroy (void)
 
int lumiera_backend_init (void)
 

Variables

size_t lumiera_backend_pagesize
 
lumiera_mutex lumiera_filecreate_mutex
 Protect lookup and creation of files. More...
 

Function Documentation

◆ lumiera_backend_init()

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:

◆ lumiera_backend_destroy()

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

◆ lumiera_backend_pagesize

size_t lumiera_backend_pagesize

Definition at line 59 of file backend.c.

Referenced by lumiera_backend_init().

◆ lumiera_filecreate_mutex

lumiera_mutex lumiera_filecreate_mutex

Protect lookup and creation of files.

Trying to access a nonexistent file with O_CREAT would be racy. Defined in filedescriptor.c

Definition at line 51 of file filedescriptor.c.

Referenced by lumiera_backend_destroy(), lumiera_backend_init(), and lumiera_filedescriptor_acquire().