/*!
- * @file frescan_reply_objs.h
+ * @file frescan_bwres_robjs.c
*
- * @brief FRESCAN reply objects
+ * @brief FRESCAN bandwith reservation layer: reply objects
*
* This module contains the definition of the data object and operations to
* create a pool of objects, obtain the id of an unused object, wait upon it,
*/
#include <misc/freelist.h>
-#include "frescan_reply_objs.h"
+#include "frescan_bwres_robjs.h"
#include "fosa_mutexes_and_condvars.h"
#include "frescan_config.h"
#include "frescan_debug.h"
static freelist_t freelist;
/**
- * frescan_replyobjects_init()
+ * frescan_bwres_robjs_init()
*
* Init the freelist and its mutex. The conditional variables are not
* initialized here but when allocating a reply object. This can be more
*
**/
-int frescan_replyobjects_init(int max_ceiling)
+int frescan_bwres_robjs_init(int max_ceiling)
{
int err;
}
/**
- * frescan_replyobject_alloc()
+ * frescan_bwres_robjs_alloc()
*
* Allocate an reply object with the freelist_mutex locked and then initialize
* its cond variable, condition (predicate) and mutex. The ID of the allocated
*
**/
-int frescan_replyobject_alloc(frescan_robj_id_t *id, int ceiling)
+int frescan_bwres_robjs_alloc(frescan_robj_id_t *id, int ceiling)
{
int err, pos;
}
/**
- * frescan_replyobject_free()
+ * frescan_bwres_robjs_free()
*
* Destroy the cond variable and then free the replyobject
*
**/
-int frescan_replyobject_free(frescan_robj_id_t id)
+int frescan_bwres_robjs_free(frescan_robj_id_t id)
{
int err;
}
/**
- * frescan_replyobject_signal()
+ * frescan_bwres_robjs_signal()
*
* Signal the cond variable
*
**/
-int frescan_replyobject_signal(frescan_robj_id_t id)
+int frescan_bwres_robjs_signal(frescan_robj_id_t id)
{
int err;
}
/**
- * frescan_replyobject_wait()
+ * frescan_bwres_robjs_wait()
*
* Wait on the cond variable.
*
**/
-int frescan_replyobject_wait(frescan_robj_id_t id)
+int frescan_bwres_robjs_wait(frescan_robj_id_t id)
{
int err;
}
/**
- * frescan_replyobject_timedwait()
+ * frescan_bwres_robjs_timedwait()
*
* Wait on the cond variable with a timeout.
*
**/
-int frescan_replyobject_timedwait(frescan_robj_id_t id,
+int frescan_bwres_robjs_timedwait(frescan_robj_id_t id,
const struct timespec *abstime)
{
int err;