linux/drivers/misc/pvpanic/pvpanic.c

// SPDX-License-Identifier: GPL-2.0+
/*
 *  Pvpanic Device Support
 *
 *  Copyright (C) 2013 Fujitsu.
 *  Copyright (C) 2018 ZTE.
 *  Copyright (C) 2021 Oracle.
 */

#include <linux/device.h>
#include <linux/errno.h>
#include <linux/gfp_types.h>
#include <linux/io.h>
#include <linux/kexec.h>
#include <linux/kstrtox.h>
#include <linux/limits.h>
#include <linux/list.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/panic_notifier.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <linux/spinlock.h>
#include <linux/sysfs.h>
#include <linux/types.h>

#include <uapi/misc/pvpanic.h>

#include "pvpanic.h"

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();

struct pvpanic_instance {};

static struct list_head pvpanic_list;
static spinlock_t pvpanic_lock;

static void
pvpanic_send_event(unsigned int event)
{}

static int
pvpanic_panic_notify(struct notifier_block *nb, unsigned long code, void *unused)
{}

/*
 * Call our notifier very early on panic, deferring the
 * action taken to the hypervisor.
 */
static struct notifier_block pvpanic_panic_nb =;

static int pvpanic_sys_off(struct sys_off_data *data)
{}

static void pvpanic_synchronize_sys_off_handler(struct device *dev, struct pvpanic_instance *pi)
{}

static void pvpanic_remove(void *param)
{}

static ssize_t capability_show(struct device *dev, struct device_attribute *attr, char *buf)
{}
static DEVICE_ATTR_RO(capability);

static ssize_t events_show(struct device *dev, struct device_attribute *attr, char *buf)
{}

static ssize_t events_store(struct device *dev, struct device_attribute *attr,
			    const char *buf, size_t count)
{}
static DEVICE_ATTR_RW(events);

static struct attribute *pvpanic_dev_attrs[] =;

static const struct attribute_group pvpanic_dev_group =;

const struct attribute_group *pvpanic_dev_groups[] =;
EXPORT_SYMBOL_GPL();

int devm_pvpanic_probe(struct device *dev, void __iomem *base)
{}
EXPORT_SYMBOL_GPL();

static int pvpanic_init(void)
{}
module_init();

static void pvpanic_exit(void)
{}
module_exit(pvpanic_exit);