sys-hypervisor.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) sys-hypervisor.c (982e4430beb94e65c482d36a11dbb779f20c38a7)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * copyright (c) 2006 IBM Corporation
4 * Authored by: Mike D. Day <ncmike@us.ibm.com>
5 */
6
7#include <linux/slab.h>
8#include <linux/kernel.h>

--- 8 unchanged lines hidden (view full) ---

17#include <xen/xenbus.h>
18#include <xen/interface/xen.h>
19#include <xen/interface/version.h>
20#ifdef CONFIG_XEN_HAVE_VPMU
21#include <xen/interface/xenpmu.h>
22#endif
23
24#define HYPERVISOR_ATTR_RO(_name) \
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * copyright (c) 2006 IBM Corporation
4 * Authored by: Mike D. Day <ncmike@us.ibm.com>
5 */
6
7#include <linux/slab.h>
8#include <linux/kernel.h>

--- 8 unchanged lines hidden (view full) ---

17#include <xen/xenbus.h>
18#include <xen/interface/xen.h>
19#include <xen/interface/version.h>
20#ifdef CONFIG_XEN_HAVE_VPMU
21#include <xen/interface/xenpmu.h>
22#endif
23
24#define HYPERVISOR_ATTR_RO(_name) \
25static struct hyp_sysfs_attr _name##_attr = __ATTR_RO(_name)
25static struct hyp_sysfs_attr _name##_attr = __ATTR_RO(_name)
26
27#define HYPERVISOR_ATTR_RW(_name) \
26
27#define HYPERVISOR_ATTR_RW(_name) \
28static struct hyp_sysfs_attr _name##_attr = \
29 __ATTR(_name, 0644, _name##_show, _name##_store)
28static struct hyp_sysfs_attr _name##_attr = __ATTR_RW(_name)
30
31struct hyp_sysfs_attr {
32 struct attribute attr;
33 ssize_t (*show)(struct hyp_sysfs_attr *, char *);
34 ssize_t (*store)(struct hyp_sysfs_attr *, const char *, size_t);
35 void *hyp_attr_data;
36};
37

--- 573 unchanged lines hidden ---
29
30struct hyp_sysfs_attr {
31 struct attribute attr;
32 ssize_t (*show)(struct hyp_sysfs_attr *, char *);
33 ssize_t (*store)(struct hyp_sysfs_attr *, const char *, size_t);
34 void *hyp_attr_data;
35};
36

--- 573 unchanged lines hidden ---