]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/userfaultfd_k.h
userfaultfd: non-cooperative: add event for exit() notification
[karo-tx-linux.git] / include / linux / userfaultfd_k.h
index a40be5d0661b210ac6b0360ddfa0896aa03a97da..0468548acebfef5431ea7bfd6f565cfdfb73f348 100644 (file)
@@ -72,6 +72,8 @@ extern int userfaultfd_unmap_prep(struct vm_area_struct *vma,
 extern void userfaultfd_unmap_complete(struct mm_struct *mm,
                                       struct list_head *uf);
 
+extern void userfaultfd_exit(struct mm_struct *mm);
+
 #else /* CONFIG_USERFAULTFD */
 
 /* mm helpers */
@@ -136,6 +138,11 @@ static inline void userfaultfd_unmap_complete(struct mm_struct *mm,
                                              struct list_head *uf)
 {
 }
+
+static inline void userfaultfd_exit(struct mm_struct *mm)
+{
+}
+
 #endif /* CONFIG_USERFAULTFD */
 
 #endif /* _LINUX_USERFAULTFD_K_H */