1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright (c) 2023 Huawei Device Co., Ltd. 4 */ 5 6 #ifndef _XPM_COMMON_H 7 #define _XPM_COMMON_H 8 9 #include <linux/mm.h> 10 #include <linux/sched.h> 11 12 /** 13 * xpm_is_anonymous_vma - Determine whether vma is anonymous. 14 * 15 * @vma: Pointer to "struct vm_area_struct" which need to be determined. 16 * 17 * Returns true on anonymunt, 0 on permissive mode. 18 * 19 * NOTE: shemem also been treated as anonymous vma. 20 */ 21 bool xpm_is_anonymous_vma(struct vm_area_struct *vma); 22 23 #endif /* _XPM_COMMON_H */ 24