[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Introduce gnttab_empty_grant_references() to check whether grant



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID b36a43b9d9b55cd8bae08b4b72dc369c5ab6862d
# Parent  b055716f89c0741ea882fa23c8895ca4b53d3184
Introduce gnttab_empty_grant_references() to check whether grant
references is empty.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r b055716f89c0 -r b36a43b9d9b5 
linux-2.6-xen-sparse/drivers/xen/core/gnttab.c
--- a/linux-2.6-xen-sparse/drivers/xen/core/gnttab.c    Fri Apr 14 13:54:46 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/core/gnttab.c    Fri Apr 14 14:05:04 2006
@@ -65,6 +65,7 @@
 EXPORT_SYMBOL_GPL(gnttab_alloc_grant_references);
 EXPORT_SYMBOL_GPL(gnttab_free_grant_references);
 EXPORT_SYMBOL_GPL(gnttab_free_grant_reference);
+EXPORT_SYMBOL_GPL(gnttab_empty_grant_references);
 EXPORT_SYMBOL_GPL(gnttab_claim_grant_reference);
 EXPORT_SYMBOL_GPL(gnttab_release_grant_reference);
 EXPORT_SYMBOL_GPL(gnttab_request_free_callback);
@@ -322,6 +323,12 @@
        *head = h;
 
        return 0;
+}
+
+int
+gnttab_empty_grant_references(const grant_ref_t *private_head)
+{
+       return (*private_head == GNTTAB_LIST_END);
 }
 
 int
diff -r b055716f89c0 -r b36a43b9d9b5 linux-2.6-xen-sparse/include/xen/gnttab.h
--- a/linux-2.6-xen-sparse/include/xen/gnttab.h Fri Apr 14 13:54:46 2006
+++ b/linux-2.6-xen-sparse/include/xen/gnttab.h Fri Apr 14 14:05:04 2006
@@ -91,6 +91,8 @@
 
 void gnttab_free_grant_references(grant_ref_t head);
 
+int gnttab_empty_grant_references(const grant_ref_t *pprivate_head);
+
 int gnttab_claim_grant_reference(grant_ref_t *pprivate_head);
 
 void gnttab_release_grant_reference(grant_ref_t *private_head,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.