https://github.com/torvalds/linux
Raw File
Tip revision: c9e6606c7fe92b50a02ce51dda82586ebdf99b48 authored by Linus Torvalds on 02 January 2022, 22:23:25 UTC
Linux 5.16-rc8
Tip revision: c9e6606
memregion.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _MEMREGION_H_
#define _MEMREGION_H_
#include <linux/types.h>
#include <linux/errno.h>

struct memregion_info {
	int target_node;
};

#ifdef CONFIG_MEMREGION
int memregion_alloc(gfp_t gfp);
void memregion_free(int id);
#else
static inline int memregion_alloc(gfp_t gfp)
{
	return -ENOMEM;
}
void memregion_free(int id)
{
}
#endif
#endif /* _MEMREGION_H_ */
back to top