]> www.infradead.org Git - users/hch/misc.git/commit
RDMA/core: Move ib_uverbs_file struct to uverbs_types.h
authorPatrisious Haddad <phaddad@nvidia.com>
Thu, 31 Oct 2024 11:22:52 +0000 (13:22 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 4 Nov 2024 11:57:21 +0000 (06:57 -0500)
commit27ed2f00807c2328c99751f9500ce6478f16cf7b
treeb116bb231a3600b1fb52073a97f1fbac7f0798b6
parentdc6be4418a1144cce422093cde0245c76cdcaff0
RDMA/core: Move ib_uverbs_file struct to uverbs_types.h

In light of the previous commit, make the ib_uverbs_file accessible to
drivers by moving its definition to uverbs_types.h, to allow drivers to
freely access the struct argument and create a personalized cleanup flow.

For the same reason expose uverbs_try_lock_object function to allow driver
to safely access the uverbs objects.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://patch.msgid.link/29b718e0dca35daa5f496320a39284fc1f5a1722.1730373303.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/rdma_core.c
drivers/infiniband/core/uverbs.h
include/rdma/uverbs_types.h