direct-io.hg

view linux-2.6-xen-sparse/include/xen/hypervisor_sysfs.h @ 11509:2e6c10dc7c0b

[POWERPC][XEN] make sure put_domain() is called in case of allocate_rma() failuer

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Sep 12 10:53:46 2006 -0400 (2006-09-12)
parents 349d26c1094f
children
line source
1 /*
2 * copyright (c) 2006 IBM Corporation
3 * Authored by: Mike D. Day <ncmike@us.ibm.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
10 #ifndef _HYP_SYSFS_H_
11 #define _HYP_SYSFS_H_
13 #include <linux/kobject.h>
14 #include <linux/sysfs.h>
16 #define HYPERVISOR_ATTR_RO(_name) \
17 static struct hyp_sysfs_attr _name##_attr = __ATTR_RO(_name)
19 #define HYPERVISOR_ATTR_RW(_name) \
20 static struct hyp_sysfs_attr _name##_attr = \
21 __ATTR(_name, 0644, _name##_show, _name##_store)
23 extern struct subsystem hypervisor_subsys;
25 struct hyp_sysfs_attr {
26 struct attribute attr;
27 ssize_t (*show)(struct hyp_sysfs_attr *, char *);
28 ssize_t (*store)(struct hyp_sysfs_attr *, const char *, size_t);
29 void *hyp_attr_data;
30 };
32 #endif /* _HYP_SYSFS_H_ */