X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_queue.h;h=e88329f563ad83ce8de6df733f98e2afda123e3a;hp=ee0e01a02dbba9fc8a8e53ee36dcf46d5ac131c3;hb=68521eca0f94f8c22aa60e762c83e24beec7233c;hpb=7246e098eaeb10934569dd4c6ef12753a1637351 diff --git a/palacios/include/palacios/vmm_queue.h b/palacios/include/palacios/vmm_queue.h index ee0e01a..e88329f 100644 --- a/palacios/include/palacios/vmm_queue.h +++ b/palacios/include/palacios/vmm_queue.h @@ -1,3 +1,23 @@ +/* + * This file is part of the Palacios Virtual Machine Monitor developed + * by the V3VEE Project with funding from the United States National + * Science Foundation and the Department of Energy. + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2008, Jack Lange + * Copyright (c) 2008, The V3VEE Project + * All rights reserved. + * + * Author: Jack Lange + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "V3VEE_LICENSE". + */ + + #ifndef __VMM_QUEUE_H__ #define __VMM_QUEUE_H__ @@ -5,7 +25,7 @@ #include #include - +#include /* IMPORTANT: @@ -15,25 +35,23 @@ struct queue_entry { - addr_t entry; - struct list_head entry_list; + addr_t entry; + struct list_head entry_list; }; struct gen_queue { - uint_t num_entries; - struct list_head entries; - - // We really need to implement this.... - // void * lock; + uint_t num_entries; + struct list_head entries; + v3_lock_t lock; }; -struct gen_queue * create_queue(); -void init_queue(struct gen_queue * queue); +struct gen_queue * v3_create_queue(); +void v3_init_queue(struct gen_queue * queue); -void enqueue(struct gen_queue * queue, addr_t entry); -addr_t dequeue(struct gen_queue * queue); +void v3_enqueue(struct gen_queue * queue, addr_t entry); +addr_t v3_dequeue(struct gen_queue * queue);