IBM
Contents Index Previous Next



Utility Functions


File Structure

Description of Files

The modules and functions described in this subsection are used to handle first in-first out buffering, ring buffering, message coding and other possibilities.

ml_buf.c

This module contains functions to handle first-in first-out buffers and ring buffers.

It is mainly used internally by the SDL Target Tester to write and read trace information into/from a first-in first-out buffer within the RAM.

These functions are also free for users.

Three functions are implemented representing the low level functions. Each entry has to be of the same size, because the handling is in principle similar to an array. The type of each entry is not relevant. In addition, the caller of the functions contained in this module defines the memory for the trace buffer as well as a control structure representing all the internal data and variables necessary to administrate the trace buffer.

As a result, users are free to have more than 1 instance of this buffer type.

ml_buf.h

This is the header file containing the external definitions of ml_buf.c.


http://www.ibm.com/rational
Contents Index Previous Next