WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] NR_GRANT_ENTRIES definition ??

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] NR_GRANT_ENTRIES definition ??
From: Kaushik Bhandankar <kaushikb@xxxxxxxxxxxxx>
Date: Wed, 14 Nov 2007 12:33:24 -0500
Delivery-date: Wed, 14 Nov 2007 09:34:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <473A5EB9.80805@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <473A5EB9.80805@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.13 (X11/20070824)
kaushikb wrote:
I need to use NR_GRANT_ENTRIES in xen/common/grant_table.c but couldnt find its definition anywhere... grepping could see that INITIAL_NR_GRANT_ENTRIES (but not NR_GRANT_ENTRIES) is defined in xen/include/xen/grant_table.h whereas NR_GRANT_ENTRIES (and NR_GRANT_FRAMES) is defined instead in extras/mini-os/gnttab.c

Do I need to copy the NR_GRANT_ENTRIES and NR_GRANT_FRAMES definitions from extras/mini-os/gnttab.c to xen/include/xen/grant_table.h ?

-Kaushik


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

got it... use
nr_grant_entries(rd->grant_table)) instead of NR_GRANT_ENTRIES .. should have known this earlier.. :)

-Kaushik

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

<Prev in Thread] Current Thread [Next in Thread>