libosmodsp 0.4.0.8-9128
Osmocom DSP library
.cfile helpers

Files

file  cfile.h
 Osmocom .cfile helpers header.
 
file  cfile.c
 Osmocom .cfile helpers implementation.
 

Data Structures

struct  cfile
 Structure representing a currently mapped .cfile. More...
 

Functions

struct cfilecfile_load (const char *filename)
 .cfile loader: mmap() the data into memory (read-only) More...
 
void cfile_release (struct cfile *cf)
 Release all resources associated with a mapped .cfile. More...
 

Detailed Description

Function Documentation

◆ cfile_load()

struct cfile * cfile_load ( const char *  filename)

.cfile loader: mmap() the data into memory (read-only)

Parameters
[in]filenameFilename of the .cfile to map
Returns
A structure desribing the mapped data

References _blen, data, and len.

◆ cfile_release()

void cfile_release ( struct cfile cf)

Release all resources associated with a mapped .cfile.

Parameters
[in]cfStructure describing the cfile to unmap

References _blen, and data.