summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDean Luick <dean.luick@cornelisnetworks.com>2026-03-09 23:44:59 +0300
committerLeon Romanovsky <leon@kernel.org>2026-03-11 22:17:28 +0300
commit6be4ca0ab3a2363a850787079f2342d41d377487 (patch)
tree05e201062a2cbe4da3509aa0c9334854bd6beb5c /include
parent0fed679e0862b3abd706041be3cc7620318fbee8 (diff)
downloadlinux-6be4ca0ab3a2363a850787079f2342d41d377487.tar.xz
RDMA/rdmavt: Add driver mmap callback
Add a reserved range and a driver callback to allow the driver to have custom mmaps. Generated mmap offsets are cookies and are not related to the size of the mmap. Advance the mmap offset by the minimum, PAGE_SIZE, rather than the size of the mmap. Signed-off-by: Dean Luick <dean.luick@cornelisnetworks.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com> Link: https://patch.msgid.link/177308909972.1279894.15543003811821875042.stgit@awdrv-04.cornelisnetworks.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/rdma/rdma_vt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rdma/rdma_vt.h b/include/rdma/rdma_vt.h
index 8671c6da16bb..7d8de561f71b 100644
--- a/include/rdma/rdma_vt.h
+++ b/include/rdma/rdma_vt.h
@@ -366,6 +366,9 @@ struct rvt_driver_provided {
/* deallocate a ucontext */
void (*dealloc_ucontext)(struct ib_ucontext *context);
+
+ /* driver mmap */
+ int (*mmap)(struct ib_ucontext *context, struct vm_area_struct *vma);
};
struct rvt_dev_info {