mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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]>
15 lines
294 B
C
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);
|
|
}
|