swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: 32346491ddf24599decca06190ebca03ff9de7f8 authored by Linus Torvalds on 10 July 2022, 21:40:51 UTC
Linux 5.19-rc6
Tip revision: 3234649
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;
}
static inline void memregion_free(int id)
{
}
#endif
#endif /* _MEMREGION_H_ */
back to top