[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 21/28] libxl: ocaml: add wrappers for poll
On 23/04/13 14:43, Ian Campbell wrote: (aside: I'd really love it if tools/ocaml/libs/mmap could find a non-Xen home too ;-)) I think I can arrange that.In the mirage code we've settled on using OCaml 'bigarrays' [1] (wrappers around C arrays) to pass around buffers, represent memory pages etc. The OCaml standard library has the ability to mmap() stuff and return a bigarray but there was an unfortunate bug where it assumed the thing being mmap()ed also supported lseek() [2]. The bug was fixed in OCaml 4.00.0 so if we're happy to depend on that then we're ready to roll. Cheers, Dave [1] http://caml.inria.fr/pub/docs/manual-ocaml/libref/Bigarray.html [2] http://caml.inria.fr/mantis/print_bug_page.php?bug_id=5543 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |