linux/drivers/acpi/event.c

// SPDX-License-Identifier: GPL-2.0
/*
 * event.c - exporting ACPI events via procfs
 *
 *  Copyright (C) 2001, 2002 Andy Grover <[email protected]>
 *  Copyright (C) 2001, 2002 Paul Diefenbaugh <[email protected]>
 *
 */

#define pr_fmt(fmt)

#include <linux/spinlock.h>
#include <linux/export.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <linux/poll.h>
#include <linux/gfp.h>
#include <linux/acpi.h>
#include <net/netlink.h>
#include <net/genetlink.h>

#include "internal.h"

/* ACPI notifier chain */
static BLOCKING_NOTIFIER_HEAD(acpi_chain_head);

int acpi_notifier_call_chain(struct acpi_device *dev, u32 type, u32 data)
{}
EXPORT_SYMBOL();

int register_acpi_notifier(struct notifier_block *nb)
{}
EXPORT_SYMBOL();

int unregister_acpi_notifier(struct notifier_block *nb)
{}
EXPORT_SYMBOL();

#ifdef CONFIG_NET
static unsigned int acpi_event_seqnum;
struct acpi_genl_event {};

/* attributes of acpi_genl_family */
enum {};
#define ACPI_GENL_ATTR_MAX

/* commands supported by the acpi_genl_family */
enum {};
#define ACPI_GENL_CMD_MAX

#define ACPI_GENL_FAMILY_NAME
#define ACPI_GENL_VERSION
#define ACPI_GENL_MCAST_GROUP_NAME

static const struct genl_multicast_group acpi_event_mcgrps[] =;

static struct genl_family acpi_event_genl_family __ro_after_init =;

int acpi_bus_generate_netlink_event(const char *device_class,
				      const char *bus_id,
				      u8 type, int data)
{}

EXPORT_SYMBOL();

static int __init acpi_event_genetlink_init(void)
{}

#else
int acpi_bus_generate_netlink_event(const char *device_class,
				      const char *bus_id,
				      u8 type, int data)
{
	return 0;
}

EXPORT_SYMBOL(acpi_bus_generate_netlink_event);

static int acpi_event_genetlink_init(void)
{
	return -ENODEV;
}
#endif

static int __init acpi_event_init(void)
{}

fs_initcall(acpi_event_init);