Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 abort_maincontext, maincontext_t
 abort_thread, thread_t
 abortall_syncrun, syncrun_t
 abortthread_syncrun, syncrun_t
 abs_int32, int_t
 abs_int64, int_t
 accessmode_file, file_t
 accessmode_iochannel, iochannel_t
 adaptdepth_blockarray
 add_bigint, bigint_t
 add_biginthelper
 add_decimal, decimal_t
 add_decimalhelper
 addchar_suffixtree
 addcolumn_textpos, textpos_t
 addr_memblock, memblock_t
 addr_mmfile, mmfile_t
 addr_splitstring
 addr_string, string_t
 addsplit_decimalhelper
 addsubnode_trienode, trie_node_t
 addtofreelist_syncqueue, syncqueue_t
 adduservalue_trienode, trie_node_t
 adduservalue_trienodeoffsets, trie_nodeoffsets_t
 advisedontneed_file, file_t
 advisereadahead_file, file_t
 alignedsize_mmfile, mmfile_t
 alignedsize_staticpage, staticpage_t
 alignexponent_decimalhelper
 alignoffset_trienode, trie_node_t
 alignsize_testmmblock, testmm_block_t
 alloc_cstring_wbuffer
 alloc_memblock_wbuffer
 alloc_static_wbuffer
 allocate_cstring, cstring_t
 allocate_decimalhelper
 allocate_file, file_t
 allocateblock_binarystack
 allocatebuffer_logwriter
 allocatedsize_cstring, cstring_t
 allocatedsize_malloc
 allocatedsize_malloc impl
 allocblock_pagecacheimpl
 allocpage, pagecache_it
 allocpage_pagecache, pagecache_t
 allocpage_pagecacheimpl, pagecache_impl_t
 allocstatic, pagecache_it
 allocstatic_maincontext, maincontext_t
 allocstatic_pagecache, pagecache_t
 allocstatic_pagecacheimpl, pagecache_impl_t
 api_eglcontext, eglcontext_t
 api_gcontext, gcontext_t
 append_cstring, cstring_t
 appendbyte_wbuffer, wbuffer_t
 appendbytes_wbuffer, wbuffer_t
 appendcopy_wbuffer, wbuffer_t
 arrayindex_pagecacheblock
 aserrcode_egl, egl_t
 assertfail_maincontext, maincontext_t
 assign_blockarray, blockarray_t
 assign2_blockarray, blockarray_t
 at_arraysf, arraysf_t
 at_arraystf, arraystf_t
 at_blockarray, blockarray_t
 at_trie, trie_t
 atomicadd_int, int_t
 atomicclear_int, int_t
 atomicread_int, int_t
 atomicset_int, int_t
 atomicsub_int, int_t
 atomicswap_int, int_t
 atomicwrite_int, int_t
 authenticate_sysuser, sysuser_t
 authenticatecallback_sysuser
void abort_maincontext(int err)
Exits the whole process in a controlled manner.
void abort_thread(void)
Aborts the calling thread.
int abortall_syncrun(syncrun_t *srun)
Aborts all running and waiting threads.
void abortthread_syncrun(syncrun_t *srun)
Sets the state of the running thread to syncrun_state_ABORT and returns 0.
uint32_t abs_int32(int32_t i)
Returns the absolute value as unsigned value from a signed integer.
uint64_t abs_int64(int64_t i)
Returns the absolute value as unsigned value from a signed.
accessmode_e accessmode_file(const file_t fileobj)
Returns access mode (read and or write) for a io channel.
uint8_t accessmode_iochannel(const iochannel_t ioc)
Returns accessmode_e for an io channel.
static int adaptdepth_blockarray(blockarray_t *barray,
uint8_t depth)
Adds a new root ptrblock_t and sets ptrblock_t.childs[0] to old root.
int add_bigint(bigint_t *restrict *result,
const bigint_t *lbig,
const bigint_t *rbig)
Adds the last two parameters and returns the sum in the first.
static int add_biginthelper(bigint_t *restrict *result,
const bigint_t *lbig,
const bigint_t *rbig)
Adds two integers.
int add_decimal(decimal_t *restrict *result,
const decimal_t *ldec,
const decimal_t *rdec)
Adds the last two parameters and returns the sum in the first.
static int add_decimalhelper(decimal_t *restrict *result,
const decimal_t *ldec,
const decimal_t *rdec)
Implements adding of two decimal numbers.
static int addchar_suffixtree(suffixtree_t *tree,
suffixtree_addstate_t *state)
This function process the next input character in state->suffix.
size_t addcolumn_textpos(textpos_t *txtpos,
size_t increment)
Adds increment to the column number.
uint8_t * addr_memblock(const memblock_t *mblock)
Returns start (lowest) address of memory block.
uint8_t * addr_mmfile(const mmfile_t *mfile)
Returns the lowest address of the mapped memory.
Implements splitstring_t.addr_splitstring.
const uint8_t * addr_splitstring(const splitstring_t *spstr,
uint8_t stridx)
Returns the start address of a part of the string at index stridx.
const uint8_t * addr_string(const string_t *str)
Returns the start address of the string in memory.
static void addsplit_decimalhelper(decimal_t * restrict result,
uint8_t digitsoffset,
uint8_t lsize,
const uint32_t *ldigits,
uint8_t rsize,
const uint32_t *rdigits)
Implements adding of two positive decimal numbers.
Moves all pointers in child[] array to subnode.
void addtofreelist_syncqueue(syncqueue_t *syncqueue,
struct dlist_t *freelist,
IDNAME *elem)
Adds elem to freelist.
static void adduservalue_trienodeoffsets(trie_nodeoffsets_t *offsets)
Add header_USERVALUE to offsets->header and adapts offsets.
int advisedontneed_file(file_t fileobj,
off_t offset,
off_t length)
Expects data not to be accessed in the near future.
int advisereadahead_file(file_t fileobj,
off_t offset,
off_t length)
Expects data to be accessed sequentially and in the near future.
size_t alignedsize_mmfile(const mmfile_t *mfile)
Returns the size of the mapped memory.
static inline size_t alignedsize_staticpage(void)
Returns sizeof(staticpage_t) aligned to KONFIG_MEMALIGN.
static inline int alignexponent_decimalhelper(
   /*out*/uint32_t *exponent_correction,
   int32_t decimal_exponent
)
Returns the difference between decimal_exponent and the aligned exponent.
static inline unsigned alignoffset_trienode(unsigned offset)
Aligns offset to architecture specific pointer alignment.
static inline size_t alignsize_testmmblock(size_t bytesize)
Aligns a value to the next multiple of KONFIG_MEMALIGN.
static int alloc_cstring_wbuffer(void *impl,
size_t new_size,
/*inout*/memstream_t *memstr)
Resizes cstring_t if necessary and returns additional memory in memstr.
static int alloc_memblock_wbuffer(void *impl,
size_t new_size,
/*inout*/memstream_t *memstr)
Resizes memblock_t if necessary and returns additional memory in memstr.
static int alloc_static_wbuffer(void *impl,
size_t new_size,
/*inout*/memstream_t *memstr)
Returns always ENOMEM.
int allocate_cstring(cstring_t *cstr,
size_t allocate_size)
Makes sure cstr has at least allocate_size preallocated bytes.
static int allocate_decimalhelper(decimal_t *restrict *dec,
uint32_t size_allocate)
Does the real allocation / reallocation.
int allocate_file(file_t fileobj,
off_t file_size)
Preallocates blocks on disk filled with 0 bytes.
static int allocateblock_binarystack(binarystack_t *stack,
uint32_t size)
Allocates a block of memory.
static int allocatebuffer_logwriter(/*out*/memblock_t *buffer)
Reserves some memory pages for internal buffer.
size_t allocatedsize_cstring(const cstring_t *cstr)
Returns the allocated buffer size in bytes.
int allocatedsize_malloc(/*out*/size_t *number_of_allocated_bytes)
Returns allocated number of bytes which are not freed.
Uses GNU malloc_stats extension.
static inline int allocblock_pagecacheimpl(pagecache_impl_t *pgcache,
pagesize_e pgsize,
/*out*/pagecache_block_t **block)
Allocate new pageblock_block_t and add it to freelist.
int (
   *allocpage
) (pagecache_t * pgcache, uint8_t pgsize, /*out*/struct memblock_t * page)
Allocates a single memory page of size pgsize.
int allocpage_pagecache(const pagecache_t pgcache,
uint8_t pgsize,
/*out*/struct memblock_t *page)
Calls pgcache->iimpl->allocpage with pgcache->object as first parameter.
int allocpage_pagecacheimpl(pagecache_impl_t *pgcache,
uint8_t pgsize,
/*out*/struct memblock_t *page)
Allocates a single memory page of size pgsize.
int (
   *allocstatic
) (pagecache_t * pgcache, size_t bytesize, /*out*/struct memblock_t * memblock)
Allocates static memory which should live as long as pgcache.
void * allocstatic_maincontext(uint8_t size)
Allocates size bytes of memory and returns the start address.
int allocstatic_pagecache(const pagecache_t pgcache,
size_t bytesize,
/*out*/struct memblock_t *memblock)
Calls pgcache->iimpl->allocstatic with pgcache->object as first parameter.
int allocstatic_pagecacheimpl(pagecache_impl_t *pgcache,
size_t bytesize,
/*out*/struct memblock_t *memblock)
Allocates static memory which should live as long as pgcache.
int api_eglcontext(const eglcontext_t eglcont,
struct opengl_display_t *egldisp,
/*out*/uint8_t *api)
Returns in api the client rendering API the context supports.
int api_gcontext(const gcontext_t *cont,
struct display_t *disp,
/*out*/uint8_t *api)
Returns in api the client rendering API cont supports.
int append_cstring(cstring_t *cstr,
size_t str_len,
const char str[str_len])
Appends str with len str_len to cstr.
int appendbyte_wbuffer(wbuffer_t *wbuf,
const uint8_t c)
Appends 1 byte to the buffer.
int appendbytes_wbuffer(wbuffer_t *wbuf,
size_t buffer_size,
uint8_t **buffer)
Appends buffer_size bytes of unitilaized memory to wbuf.
int appendcopy_wbuffer(wbuffer_t *wbuf,
size_t buffer_size,
const uint8_t *buffer)
Appends the first buffer_size bytes from buffer to wbuf.
static inline size_t arrayindex_pagecacheblock(const void *addr)
Returns an array index for an addr located in a pagecache_block_t.pageblock.
int aserrcode_egl(int eglerr)
Converts value returned by eglerr_egl into a system/application specific error code.
void assertfail_maincontext(const char *condition,
const char *file,
int line,
const char *funcname)
Exits the whole process in a controlled manner.
int assign_blockarray(blockarray_t *barray,
size_t arrayindex,
/*out*/void **elemaddr)
Assigns memory to an element at position arrayindex and returns its address in elemaddr.
int assign2_blockarray(blockarray_t *barray,
size_t arrayindex,
bool is_allocate,
/*out*/void **elemaddr)
Implements at_blockarray and assign_blockarray.
struct arraysf_node_t * at_arraysf(const arraysf_t *array,
size_t pos)
Returns contained node at position pos.
struct arraystf_node_t * at_arraystf(const arraystf_t *array,
size_t size,
const uint8_t keydata[size])
Returns node with same key as *keydata*[size].
void * at_blockarray(blockarray_t *barray,
size_t arrayindex)
Returns the memory address of element at position arrayindex.
void ** at_trie(trie_t *trie,
uint16_t keylen,
const uint8_t key[keylen])
TODO: describe During trie traversal two nodes are merged into one if this saves space.
int atomicadd_int(int *i,
uint32_t increment)
Add increment to i and return old value atomically.
void atomicclear_int(uint8_t *flag)
Sets flag to value 0.
int atomicread_int(int *i)
Reads last written value from memory location i.
int atomicset_int(uint8_t *flag)
Sets flag to value != 0 and returns previous value.
int atomicsub_int(int *i,
uint32_t decrement)
Sub decrement from i and return old value atomically.
int atomicswap_int(int *i,
int oldval,
int newval)
If *i is equal to oldval change it into newval atomically else do nothing.
void atomicwrite_int(int *i,
int newval)
Writes newval into memory located at i.
int authenticate_sysuser(const char *username,
const char *password)
Checks that a certain user / password combination is valid.
static int authenticatecallback_sysuser(int num_msg,
const struct pam_message **msg,
struct pam_response **resp,
void *appdata_ptr)
Function called back from PAM library during authentication of user.
Close