linux/mm/hwpoison-inject.c

// SPDX-License-Identifier: GPL-2.0-only
/* Inject a hwpoison memory failure on a arbitrary pfn */
#include <linux/module.h>
#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/pagemap.h>
#include <linux/hugetlb.h>
#include "internal.h"

static struct dentry *hwpoison_dir;

static int hwpoison_inject(void *data, u64 val)
{}

static int hwpoison_unpoison(void *data, u64 val)
{}

DEFINE_DEBUGFS_ATTRIBUTE();
DEFINE_DEBUGFS_ATTRIBUTE();

static void __exit pfn_inject_exit(void)
{}

static int __init pfn_inject_init(void)
{}

module_init();
module_exit(pfn_inject_exit);
MODULE_DESCRIPTION();
MODULE_LICENSE();