FILE
alloc_nid_api.h
File preview with syntax highlighting.
linux-6.19.14/tools/testing/memblock/tests/alloc_nid_api.h
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2#ifndef _MEMBLOCK_ALLOC_NID_H 3#define _MEMBLOCK_ALLOC_NID_H 4 5#include "common.h" 6 7int memblock_alloc_nid_checks(void); 8int memblock_alloc_exact_nid_range_checks(void); 9int __memblock_alloc_nid_numa_checks(void); 10 11#ifdef CONFIG_NUMA 12static inline int memblock_alloc_nid_numa_checks(void) 13{ 14 __memblock_alloc_nid_numa_checks(); 15 return 0; 16} 17 18#else 19static inline int memblock_alloc_nid_numa_checks(void) 20{ 21 return 0; 22} 23 24#endif /* CONFIG_NUMA */ 25 26#endif
~/
Read-only file preview.