/* * This file is subject to the terms and conditions of the GNU General * Public License. See the file "COPYING" in the main directory of * this archive for more details. * * Copyright (C) 2005 by Christian Limpach * */ #include #include #include #include int main(int argc, char **argv) { unsigned int xc_fd, io_fd, domid, nr_pfns, evtchn; int ret; unsigned long mfn; if (argc != 6) errx(1, "usage: %s xcfd iofd domid nr_pfns evtchn", argv[0]); xc_fd = atoi(argv[1]); io_fd = atoi(argv[2]); domid = atoi(argv[3]); nr_pfns = atoi(argv[4]); evtchn = atoi(argv[5]); ret = xc_linux_restore(xc_fd, io_fd, domid, nr_pfns, evtchn, &mfn); if (ret == 0) { printf("store-mfn %li\n", mfn); fflush(stdout); } return ret; } /openwrt/upstream/'>openwrt/upstream
upstream openwrtJames
aboutsummaryrefslogtreecommitdiffstats
blob: 261ffb42b095d048abd60786f10209c02c533b09 (plain)
1
2
3
4