summaryrefslogtreecommitdiff
path: root/mm/slab.h
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2021-02-22 20:14:24 +0300
committerAlex Williamson <alex.williamson@redhat.com>2021-02-22 20:14:24 +0300
commit72d6e4871f0457dc9e498f8437ea344ee6b78075 (patch)
tree44a6975d7f0818086e34b8e84e3164527fac36f4 /mm/slab.h
parentb9abef43a08ef7faa33477cccb0c08c64eb2b8bf (diff)
parent3e10585335b7967326ca7b4118cada0d2d00a2ab (diff)
downloadlinux-72d6e4871f0457dc9e498f8437ea344ee6b78075.tar.xz
Merge commit '3e10585335b7967326ca7b4118cada0d2d00a2ab' into v5.12/vfio/next
Update to new follow_pte() definition
Diffstat (limited to 'mm/slab.h')
-rw-r--r--mm/slab.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/mm/slab.h b/mm/slab.h
index 1a756a359fa8..ecad9b57bc44 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -615,4 +615,16 @@ static inline bool slab_want_init_on_free(struct kmem_cache *c)
return false;
}
+#define KS_ADDRS_COUNT 16
+struct kmem_obj_info {
+ void *kp_ptr;
+ struct page *kp_page;
+ void *kp_objp;
+ unsigned long kp_data_offset;
+ struct kmem_cache *kp_slab_cache;
+ void *kp_ret;
+ void *kp_stack[KS_ADDRS_COUNT];
+};
+void kmem_obj_info(struct kmem_obj_info *kpp, void *object, struct page *page);
+
#endif /* MM_SLAB_H */