cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

memregion.h (417B)


      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
      7struct memregion_info {
      8	int target_node;
      9};
     10
     11#ifdef CONFIG_MEMREGION
     12int memregion_alloc(gfp_t gfp);
     13void memregion_free(int id);
     14#else
     15static inline int memregion_alloc(gfp_t gfp)
     16{
     17	return -ENOMEM;
     18}
     19static inline void memregion_free(int id)
     20{
     21}
     22#endif
     23#endif /* _MEMREGION_H_ */