1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _LINUX_SECRETMEM_H
3 #define _LINUX_SECRETMEM_H
5 #ifdef CONFIG_SECRETMEM
7 extern const struct address_space_operations secretmem_aops;
9 static inline bool secretmem_mapping(struct address_space *mapping)
11 return mapping->a_ops == &secretmem_aops;
14 bool vma_is_secretmem(struct vm_area_struct *vma);
15 bool secretmem_active(void);
19 static inline bool vma_is_secretmem(struct vm_area_struct *vma)
24 static inline bool secretmem_mapping(struct address_space *mapping)
29 static inline bool secretmem_active(void)
34 #endif /* CONFIG_SECRETMEM */
36 #endif /* _LINUX_SECRETMEM_H */