ia64/xen-unstable

view linux-2.6-xen-sparse/include/xen/foreign_page.h @ 9296:f85bb99187bf

Update interface documentation to include sched_op_new hypercall
and clean up the style a bit. Also clean up the sched_op_new
description in the sched.h public header.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 15 19:19:22 2006 +0100 (2006-03-15)
parents fd9b2c1bb577
children 48c0f5489d44
line source
1 /******************************************************************************
2 * foreign_page.h
3 *
4 * Provide a "foreign" page type, that is owned by a foreign allocator and
5 * not the normal buddy allocator in page_alloc.c
6 *
7 * Copyright (c) 2004, K A Fraser
8 */
10 #ifndef __ASM_XEN_FOREIGN_PAGE_H__
11 #define __ASM_XEN_FOREIGN_PAGE_H__
13 #define PG_foreign PG_arch_1
15 #define PageForeign(page) test_bit(PG_foreign, &(page)->flags)
17 #define SetPageForeign(page, dtor) do { \
18 set_bit(PG_foreign, &(page)->flags); \
19 (page)->mapping = (void *)dtor; \
20 } while (0)
22 #define ClearPageForeign(page) do { \
23 clear_bit(PG_foreign, &(page)->flags); \
24 (page)->mapping = NULL; \
25 } while (0)
27 #define PageForeignDestructor(page) \
28 ( (void (*) (struct page *)) (page)->mapping )
30 #endif /* __ASM_XEN_FOREIGN_PAGE_H__ */
32 /*
33 * Local variables:
34 * c-file-style: "linux"
35 * indent-tabs-mode: t
36 * c-indent-level: 8
37 * c-basic-offset: 8
38 * tab-width: 8
39 * End:
40 */