memregion.h 403 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _MEMREGION_H_
  3. #define _MEMREGION_H_
  4. #include <linux/types.h>
  5. #include <linux/errno.h>
  6. struct memregion_info {
  7. int target_node;
  8. };
  9. #ifdef CONFIG_MEMREGION
  10. int memregion_alloc(gfp_t gfp);
  11. void memregion_free(int id);
  12. #else
  13. static inline int memregion_alloc(gfp_t gfp)
  14. {
  15. return -ENOMEM;
  16. }
  17. void memregion_free(int id)
  18. {
  19. }
  20. #endif
  21. #endif /* _MEMREGION_H_ */