#include <linux/platform_device.h>
#include <linux/memregion.h>
#include <linux/module.h>
#include <linux/dax.h>
#include <linux/mm.h>
static bool nohmem;
module_param_named(disable, nohmem, bool, 0444);
static bool platform_initialized;
static DEFINE_MUTEX(hmem_resource_lock);
static struct resource hmem_active = …;
int walk_hmem_resources(struct device *host, walk_hmem_fn fn)
{ … }
EXPORT_SYMBOL_GPL(…);
static void __hmem_register_resource(int target_nid, struct resource *res)
{ … }
void hmem_register_resource(int target_nid, struct resource *res)
{ … }
static __init int hmem_register_one(struct resource *res, void *data)
{ … }
static __init int hmem_init(void)
{ … }
device_initcall(hmem_init);