direct-io.hg

view linux-2.6-xen-sparse/include/xen/features.h @ 8731:0e87a5bd6e8b

Unpack xen_features into an array of u8 'booleans'

This allows us to avoid including bitops.h all over the tree as well
as avoiding any potential endianness issues in the future.

Use __read_mostly on the xen_features array now that the tree is based
on a version of Linux which supports it.

Also export xen_features for use in modules.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Wed Feb 01 20:11:18 2006 +0000 (2006-02-01)
parents fd9b2c1bb577
children
line source
1 /******************************************************************************
2 * features.h
3 *
4 * Query the features reported by Xen.
5 *
6 * Copyright (c) 2006, Ian Campbell
7 */
9 #ifndef __ASM_XEN_FEATURES_H__
10 #define __ASM_XEN_FEATURES_H__
12 #include <xen/interface/version.h>
14 extern void setup_xen_features(void);
16 extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32];
18 #define xen_feature(flag) (xen_features[flag])
20 #endif /* __ASM_XEN_FEATURES_H__ */