]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/core: Introduce generic buffer descriptor infrastructure for umem
authorJiri Pirko <jiri@nvidia.com>
Fri, 29 May 2026 13:42:59 +0000 (15:42 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 29 May 2026 23:19:57 +0000 (20:19 -0300)
commit3cfdff484d84f04716ae56063a8dac3773bd3f29
tree5cea0a5fb2a22cc49c668831a4eafabc933d1bc8
parent28fb701c642b8ff73e08fabef9265b508509d820
RDMA/core: Introduce generic buffer descriptor infrastructure for umem

Introduce a per-attribute UVERBS_ATTR_UMEM model so each uverbs
command's umem set is explicit in its UAPI definition. Add
driver-facing wrapper helpers that pin a umem on demand from an
attribute or a VA addr; the driver owns the returned umem and
releases it from its destroy/error paths.

Link: https://patch.msgid.link/r/20260529134312.2836341-4-jiri@resnulli.us
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/ib_core_uverbs.c
drivers/infiniband/core/umem.c
include/rdma/ib_umem.h
include/rdma/uverbs_ioctl.h
include/uapi/rdma/ib_user_ioctl_verbs.h