From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushik Bhandankar Subject: Re: NR_GRANT_ENTRIES definition ?? Date: Wed, 14 Nov 2007 12:33:24 -0500 Message-ID: <473B3164.4090804@cc.gatech.edu> References: <473A5EB9.80805@cc.gatech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <473A5EB9.80805@cc.gatech.edu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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@lists.xensource.com > 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