Skip to contentSkip to conversation

NR_GRANT_ENTRIES definition ??

DISCUSSION kaushikb 1 participant 2 messages Nov 14, 2007

lore
Share & tools
lore

kaushikb

author
#0 lore raw

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

#1 lore raw
Quoted 11 lines · kaushikb

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
[email protected]
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