diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/userfaultfd_k.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/userfaultfd_k.h b/include/linux/userfaultfd_k.h index 79002bca1f43..7f318a46044b 100644 --- a/include/linux/userfaultfd_k.h +++ b/include/linux/userfaultfd_k.h | |||
| @@ -55,6 +55,12 @@ static inline bool userfaultfd_armed(struct vm_area_struct *vma) | |||
| 55 | extern int dup_userfaultfd(struct vm_area_struct *, struct list_head *); | 55 | extern int dup_userfaultfd(struct vm_area_struct *, struct list_head *); |
| 56 | extern void dup_userfaultfd_complete(struct list_head *); | 56 | extern void dup_userfaultfd_complete(struct list_head *); |
| 57 | 57 | ||
| 58 | extern void mremap_userfaultfd_prep(struct vm_area_struct *, | ||
| 59 | struct vm_userfaultfd_ctx *); | ||
| 60 | extern void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx, | ||
| 61 | unsigned long from, unsigned long to, | ||
| 62 | unsigned long len); | ||
| 63 | |||
| 58 | #else /* CONFIG_USERFAULTFD */ | 64 | #else /* CONFIG_USERFAULTFD */ |
| 59 | 65 | ||
| 60 | /* mm helpers */ | 66 | /* mm helpers */ |
| @@ -89,6 +95,17 @@ static inline void dup_userfaultfd_complete(struct list_head *l) | |||
| 89 | { | 95 | { |
| 90 | } | 96 | } |
| 91 | 97 | ||
| 98 | static inline void mremap_userfaultfd_prep(struct vm_area_struct *vma, | ||
| 99 | struct vm_userfaultfd_ctx *ctx) | ||
| 100 | { | ||
| 101 | } | ||
| 102 | |||
| 103 | static inline void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx ctx, | ||
| 104 | unsigned long from, | ||
| 105 | unsigned long to, | ||
| 106 | unsigned long len) | ||
| 107 | { | ||
| 108 | } | ||
| 92 | #endif /* CONFIG_USERFAULTFD */ | 109 | #endif /* CONFIG_USERFAULTFD */ |
| 93 | 110 | ||
| 94 | #endif /* _LINUX_USERFAULTFD_K_H */ | 111 | #endif /* _LINUX_USERFAULTFD_K_H */ |
