1 /* 2 * SPDX-License-Identifier: GPL-2.0-or-later 3 * 4 * Copyright (c) 2019 Cyril Hrubis <chrubis@suse.cz> 5 */ 6 7 #ifndef MBIND_H__ 8 #define MBIND_H__ 9 mbind_flag_name(unsigned flag)10static inline const char *mbind_flag_name(unsigned flag) 11 { 12 switch (flag) { 13 case 0: 14 return "0"; 15 case MPOL_MF_STRICT: 16 return "MPOL_MF_STRICT"; 17 case MPOL_MF_MOVE: 18 return "MPOL_MF_MOVE"; 19 case MPOL_MF_MOVE_ALL: 20 return "MPOL_MF_MOVE_ALL"; 21 default: 22 return "???"; 23 } 24 } 25 26 #endif /* MBIND_H__ */ 27