]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/rdmavt: Add driver mmap callback
authorDean Luick <dean.luick@cornelisnetworks.com>
Mon, 9 Mar 2026 20:44:59 +0000 (16:44 -0400)
committerLeon Romanovsky <leon@kernel.org>
Wed, 11 Mar 2026 19:17:28 +0000 (15:17 -0400)
commit6be4ca0ab3a2363a850787079f2342d41d377487
tree05e201062a2cbe4da3509aa0c9334854bd6beb5c
parent0fed679e0862b3abd706041be3cc7620318fbee8
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>
drivers/infiniband/sw/rdmavt/mmap.c
include/rdma/rdma_vt.h