From 262e118a370a55e47fc5d46ff169e9049b8defaf Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 29 Nov 2011 15:48:07 +0000 Subject: docs/html/: Annotations for two hypercalls Add annotations for a couple of the hypercalls: HYPERVISOR_set_trap_table HYPERVISOR_mmu_update We do this by * annotating the list of #defines for hypercall numbers * annotating the list of error values * providing a function prototype for the systematically-named functions The header generator does the rest. This exercise revealed a couple of infelicities: * In the actual source code, do_mmu_update is defined to return an int and do_set_trap_table a long. However both functions return either -Efoo (on error) or 0 for success. * The error numbers are defined only in the private header file xen/include/xen/errno.h and then only with names which will typically clash with other projects. It would be nice to include a public version of this header which defines XEN_E*. But for now we run xen-headers on errno.h too. Signed-off-by: Ian Jackson Acked-by: Ian Campbell Committed-by: Ian Jackson --- docs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/Makefile') diff --git a/docs/Makefile b/docs/Makefile index 92ecb20e8f..ace60bacda 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -159,7 +159,7 @@ html/hypercall/stamp: ./xen-headers -O $(@D) \ -T 'arch-x86_64 - Xen public headers' \ -X arch-ia64 -X arch-x86_32 -X xen-x86_32 \ - ../xen include/public + ../xen include/public include/xen/errno.h touch $@ txt/%.txt: %.txt -- cgit v1.2.3