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
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-develgot 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@lists.xensource.com http://lists.xensource.com/xen-devel