Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _MEMREGION_H_
0003 #define _MEMREGION_H_
0004 #include <linux/types.h>
0005 #include <linux/errno.h>
0006 
0007 struct memregion_info {
0008     int target_node;
0009 };
0010 
0011 #ifdef CONFIG_MEMREGION
0012 int memregion_alloc(gfp_t gfp);
0013 void memregion_free(int id);
0014 #else
0015 static inline int memregion_alloc(gfp_t gfp)
0016 {
0017     return -ENOMEM;
0018 }
0019 static inline void memregion_free(int id)
0020 {
0021 }
0022 #endif
0023 #endif /* _MEMREGION_H_ */