X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Futil-queue.h;h=2a60d9a88e348071f5a4b61589b682f8c91876b5;hb=a7cacea293dbc2fbbbe36421054eff95f88390d4;hp=68e4e6e6c916c228e25f9eb074ecc4d7f43e259f;hpb=95908965b5963c53a40e9eae8ad0307a2bc27434;p=palacios.git diff --git a/linux_module/util-queue.h b/linux_module/util-queue.h index 68e4e6e..2a60d9a 100644 --- a/linux_module/util-queue.h +++ b/linux_module/util-queue.h @@ -1,18 +1,20 @@ /* - * Queue implementation - * Jack Lange 2011 - */ + * Queue implementation + * Jack Lange 2011 + */ #ifndef __PALACIOS_QUEUE_H__ #define __PALACIOS_QUEUE_H__ +#include "palacios.h" #include #include + struct queue_entry { void * entry; struct list_head node; @@ -29,6 +31,8 @@ struct gen_queue { struct gen_queue * create_queue(unsigned int max_entries); void init_queue(struct gen_queue * queue, unsigned int max_entries); +void deinit_queue(struct gen_queue * queue); + int enqueue(struct gen_queue * queue, void * entry); void * dequeue(struct gen_queue * queue);