DSMCC  17.9.0
 All Data Structures Files Functions Typedefs
Data Structures | Typedefs | Functions
sfm_cache.h File Reference

Section Filter Manasger (SFM): cache definitions. More...

#include "sfm_main.h"

Go to the source code of this file.

Data Structures

struct  s_TableExt
 

Typedefs

typedef struct s_TableExt S_TableExt
 
typedef struct s_CacheTable * H_CacheTable
 
typedef struct s_CacheFilter * H_CacheFilter
 

Functions

H_SfmCache SFMCacheCreate (H_SfmInstance sfm)
 
H_CacheTable SFMCacheGetTable (H_SfmCache cache)
 
void SFMCacheDestroy (H_SfmInstance sfm, void **pBufMtx)
 
BOOLEAN SFMCacheValidHandle (H_SfmInstance sfm, void *ptr)
 
H_CacheFilter SFMCacheRetrieveFilter (H_SfmInstance sfm, H_CacheTable ctable, U16BIT teid, U8BIT vers)
 Search cache for section data. More...
 
void SFMCacheAddBlock (H_SfmInstance sfm, U8BIT size1, U8BIT bknum, void **phBuffer)
 Allocates space in cache for section data If allocation is made, *phBuffer has holds cache location. If section already allocated, or insufficient space, then *phBuffer is NULL. More...
 
void SFMCacheSearch (H_SfmInstance sfm, H_CacheTable ctable, S_TableExt tex, U16BIT dsmref, E_SFM_STATUS status)
 Search cache for section data. More...
 
void SFMCacheProcessSection (H_SfmInstance sfm, U8BIT *pSection, H_CacheFilter cfilter)
 Tells SFM Cache to update DSM-CC with cached buffer (reported to F_CacheMatch callback funtion. This also allows SFM cache to clean up completed buffers. More...
 

Detailed Description

Section Filter Manasger (SFM): cache definitions.

Date
16-10-2013
Author
Adam Sturtridge

Definition in file sfm_cache.h.

Function Documentation

void SFMCacheAddBlock ( H_SfmInstance  sfm,
U8BIT  size1,
U8BIT  bknum,
void **  phBuffer 
)

Allocates space in cache for section data If allocation is made, *phBuffer has holds cache location. If section already allocated, or insufficient space, then *phBuffer is NULL.

Parameters
H_SfmCachecache SFM cache handle.
U8BITsize1 header[1] byte with top bits for section size
void**phBuffer Pointer to SFM cache filter handle and return param with pointer to node block
Returns
void.
Parameters
H_SfmInstancesfm SFM instance handle.
H_CacheTablectable Cache table handle
void**phBuffer Pointer to SFM section buffer handle
Returns
void.

Definition at line 638 of file sfm_cache.c.

void SFMCacheProcessSection ( H_SfmInstance  sfm,
U8BIT *  pSection,
H_CacheFilter  cfilter 
)

Tells SFM Cache to update DSM-CC with cached buffer (reported to F_CacheMatch callback funtion. This also allows SFM cache to clean up completed buffers.

Parameters
H_SfmInstancesfm SFM instance handle.
U8BIT*pSection Pointer to whole section data buffer
H_CacheFiltercfilter Hande given to F_CacheMatch
Returns
void.

Definition at line 790 of file sfm_cache.c.

H_CacheFilter SFMCacheRetrieveFilter ( H_SfmInstance  sfm,
H_CacheTable  ctable,
U16BIT  teid,
U8BIT  vers 
)

Search cache for section data.

Parameters
H_SfmCachecache SFM cache handle.
H_CacheTablectable Cache table handle
U16BITteid Table Extension ID
Returns
H_CacheFilter

Definition at line 581 of file sfm_cache.c.

void SFMCacheSearch ( H_SfmInstance  sfm,
H_CacheTable  ctable,
S_TableExt  tex,
U16BIT  dsmref,
E_SFM_STATUS  status 
)

Search cache for section data.

Parameters
H_SfmInstancesfm SFM instance handle.
H_CacheTablectable Cache table handle
S_TableExttex Table Extension ID and mask
Returns
void.

Definition at line 822 of file sfm_cache.c.

BOOLEAN SFMCacheValidHandle ( H_SfmInstance  sfm,
void *  ptr 
)
Parameters
H_SfmInstancesfm SFM instance handle.
void*hCache Handle to cache buffer given to the F_CacheMatch callback function
Returns
BOOLEAN

Definition at line 757 of file sfm_cache.c.