rsd.h File Reference

Private interface for the Moving Average predictor. More...

#include <linux/aquosa/qmgr_base.h>
#include <linux/aquosa/qos_queue.h>
#include <linux/aquosa/qos_l.h>

Go to the source code of this file.

Data Structures

struct  rsd_partial_t
struct  rsd_params_struct
 Parameters for rsd predictor. More...
struct  rsd_struct
 Moving Average predictor class definition. More...

Defines

#define FIR_COEFF_BITS   16
 Decimal bits in the fixed point representation of a filter coefficient.
#define FIR_COEFF_ONE   (1 << (FIR_COEFF_BITS))
 Unity (1.0) in the fixed point representation of a filter coefficient.

Typedefs

typedef long int fir_coeff_t
 Fixed point representation of a filter coefficient.
typedef struct rsd_params_struct rsd_params_t
 Parameters for rsd predictor.
typedef struct rsd_struct rsd_t
 Moving Average predictor class definition.

Functions

static fir_coeff_t fir_coeff_mul (fir_coeff_t x, fir_coeff_t y)
static fir_coeff_t fir_coeff_div (fir_coeff_t x, fir_coeff_t y)
qos_rv rsd_register (void)
 Register the Moving Average class with the framework.
qos_rv rsd_init (void *self, void *params)
 Initialize a rsd object.
qos_rv rsd_final (qmgr_pred_t *self)
 Virtual destructor for a rsd object.
qos_rv rsd_add_sample (qmgr_pred_t *pred, qres_time_t new_sample)
 Virtual add_sample function for rsd object.
qres_time_t rsd_get_exp_value (qmgr_pred_t *pred)

Detailed Description

Private interface for the Moving Average predictor.

Definition in file rsd.h.

Generated on Mon Aug 2 22:38:48 2010 for qosmgr by  doxygen 1.6.3