libosmodsp 0.4.0-2.fc43
Osmocom DSP library
Loading...
Searching...
No Matches
.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)
void cfile_release (struct cfile *cf)
 Release all resources associated with a mapped .cfile.

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 cfile::_blen, cfile::data, and cfile::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 cfile::_blen, and cfile::data.