Files
Asahi Lina 9b836641d3 rust: helpers: Add bindings/wrappers for dma_resv_lock
This is just for basic usage in the DRM shmem abstractions for implied
locking, not intended as a full DMA Reservation abstraction yet.

Cc: Sumit Semwal <[email protected]>
Cc: Christian König <[email protected]>
Signed-off-by: Asahi Lina <[email protected]>
Signed-off-by: Daniel Almeida <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Signed-off-by: Lyude Paul <[email protected]>
Reviewed-by: Janne Grunau <[email protected]>
Reviewed-by: Daniel Almeida <[email protected]>
Acked-by: David Airlie <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Danilo Krummrich <[email protected]>
2026-03-27 20:46:56 +01:00

15 lines
294 B
C

// SPDX-License-Identifier: GPL-2.0
#include <linux/dma-resv.h>
__rust_helper
int rust_helper_dma_resv_lock(struct dma_resv *obj, struct ww_acquire_ctx *ctx)
{
return dma_resv_lock(obj, ctx);
}
__rust_helper void rust_helper_dma_resv_unlock(struct dma_resv *obj)
{
dma_resv_unlock(obj);
}