https://github.com/torvalds/linux
Raw File
Tip revision: b65054597872ce3aefbc6a666385eabdf9e288da authored by Linus Torvalds on 29 November 2020, 23:50:50 UTC
Linux 5.10-rc6
Tip revision: b650545
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