#define IS_EMPTY(charqueue) (charqueue->head == charqueue->tail)
-
-
struct CHARQUEUE_Tag {
int alloc_size;
int nslots;
unsigned char buf[0];
};
-
-
CHARQUEUE *visor_charqueue_create(ulong nslots)
{
int alloc_size = sizeof(CHARQUEUE) + nslots + 1;
}
EXPORT_SYMBOL_GPL(visor_charqueue_create);
-
-
void visor_charqueue_enqueue(CHARQUEUE *charqueue, unsigned char c)
{
int alloc_slots = charqueue->nslots+1; /* 1 slot is always empty */
}
EXPORT_SYMBOL_GPL(visor_charqueue_enqueue);
-
-
BOOL visor_charqueue_is_empty(CHARQUEUE *charqueue)
{
BOOL b;
}
EXPORT_SYMBOL_GPL(visor_charqueue_is_empty);
-
-
static int charqueue_dequeue_1(CHARQUEUE *charqueue)
{
int alloc_slots = charqueue->nslots + 1; /* 1 slot is always empty */
return charqueue->buf[charqueue->tail];
}
-
-
int charqueue_dequeue(CHARQUEUE *charqueue)
{
int rc;
return rc;
}
-
-
int visor_charqueue_dequeue_n(CHARQUEUE *charqueue, unsigned char *buf, int n)
{
int rc, counter = 0, c;
}
EXPORT_SYMBOL_GPL(visor_charqueue_dequeue_n);
-
-
void visor_charqueue_destroy(CHARQUEUE *charqueue)
{
if (charqueue == NULL)