Skip to content
Snippets Groups Projects
Commit 77481a02 authored by Asahi Lina's avatar Asahi Lina Committed by Daniel Almeida
Browse files

rust: helpers: Add bindings/wrappers for dma_resv


This is just for basic usage in the DRM shmem abstractions for implied
locking, not intended as a full DMA Reservation abstraction yet.

Signed-off-by: default avatarAsahi Lina <lina@asahilina.net>
parent 3994bc0a
No related branches found
No related tags found
Loading
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/blk_types.h> #include <linux/blk_types.h>
#include <linux/blkdev.h> #include <linux/blkdev.h>
#include <linux/cred.h> #include <linux/cred.h>
#include <linux/dma-resv.h>
#include <linux/errname.h> #include <linux/errname.h>
#include <linux/ethtool.h> #include <linux/ethtool.h>
#include <linux/file.h> #include <linux/file.h>
......
// SPDX-License-Identifier: GPL-2.0
#include <linux/dma-resv.h>
int rust_helper_dma_resv_lock(struct dma_resv *obj, struct ww_acquire_ctx *ctx)
{
return dma_resv_lock(obj, ctx);
}
void rust_helper_dma_resv_unlock(struct dma_resv *obj)
{
dma_resv_unlock(obj);
}
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "build_bug.c" #include "build_bug.c"
#include "cred.c" #include "cred.c"
#include "device.c" #include "device.c"
#include "dma-resv.c"
#include "drm.c" #include "drm.c"
#include "err.c" #include "err.c"
#include "fs.c" #include "fs.c"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment