linux/drivers/md/dm-uevent.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Device Mapper Uevent Support (dm-uevent)
 *
 * Copyright IBM Corporation, 2007
 *	Author: Mike Anderson <[email protected]>
 */
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/kobject.h>
#include <linux/dm-ioctl.h>
#include <linux/export.h>

#include "dm.h"
#include "dm-uevent.h"

#define DM_MSG_PREFIX

static const struct {} _dm_uevent_type_names[] =;

static struct kmem_cache *_dm_event_cache;

struct dm_uevent {};

static void dm_uevent_free(struct dm_uevent *event)
{}

static struct dm_uevent *dm_uevent_alloc(struct mapped_device *md)
{}

static struct dm_uevent *dm_build_path_uevent(struct mapped_device *md,
					      struct dm_target *ti,
					      enum kobject_action action,
					      const char *dm_action,
					      const char *path,
					      unsigned int nr_valid_paths)
{}

/**
 * dm_send_uevents - send uevents for given list
 *
 * @events:	list of events to send
 * @kobj:	kobject generating event
 *
 */
void dm_send_uevents(struct list_head *events, struct kobject *kobj)
{}
EXPORT_SYMBOL_GPL();

/**
 * dm_path_uevent - called to create a new path event and queue it
 *
 * @event_type:	path event type enum
 * @ti:			pointer to a dm_target
 * @path:		string containing pathname
 * @nr_valid_paths:	number of valid paths remaining
 *
 */
void dm_path_uevent(enum dm_uevent_type event_type, struct dm_target *ti,
		   const char *path, unsigned int nr_valid_paths)
{}
EXPORT_SYMBOL_GPL();

int dm_uevent_init(void)
{}

void dm_uevent_exit(void)
{}