aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_private.h
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2011-01-27 19:03:42 +0000
committerChristoph Egger <Christoph.Egger@amd.com>2011-01-27 19:03:42 +0000
commite46432026803ad6f750db3b448d962dc20c656e9 (patch)
tree2610b0faf51f482de46c85cb623076ff65bee2d7 /tools/libxc/xc_private.h
parent921fb156d4bd70020211e377207f52e06cb12e16 (diff)
downloadxen-e46432026803ad6f750db3b448d962dc20c656e9.tar.gz
xen-e46432026803ad6f750db3b448d962dc20c656e9.tar.bz2
xen-e46432026803ad6f750db3b448d962dc20c656e9.zip
libxc: break xc_get_physmem out into os-dependent files
NetBSD doesn't have sysconf(_SC_PHYS_PAGES). Factor physmem() out into os-dependent files and rename it to xc_get_physmem() so as not to pollute the namespace. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_private.h')
-rw-r--r--tools/libxc/xc_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h
index b01ca2419d..4d19dd6144 100644
--- a/tools/libxc/xc_private.h
+++ b/tools/libxc/xc_private.h
@@ -275,6 +275,9 @@ void bitmap_byte_to_64(uint64_t *lp, const uint8_t *bp, int nbits);
/* Optionally flush file to disk and discard page cache */
void discard_file_cache(xc_interface *xch, int fd, int flush);
+/* How much physical RAM is available? */
+uint64_t xc_get_physmem(void);
+
#define MAX_MMU_UPDATES 1024
struct xc_mmu {
mmu_update_t updates[MAX_MMU_UPDATES];