summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMaíra Canal <mcanal@igalia.com>2024-09-23 10:55:10 -0300
committerMaíra Canal <mcanal@igalia.com>2024-09-25 08:40:22 -0300
commitbe431dfec976e553a08883e26d0d0cc2598a8dfa (patch)
treede41ddc1654260290b563e9f08b75dda0f89b35f /include
parenteb8d395f68421449c6201d3019f51011d034f00e (diff)
downloadlinux-be431dfec976e553a08883e26d0d0cc2598a8dfa.tar.gz
linux-be431dfec976e553a08883e26d0d0cc2598a8dfa.zip
drm/gem: Create shmem GEM object in a given mountpoint
Create a function `drm_gem_shmem_create_with_mnt()`, similar to `drm_gem_shmem_create()`, that has a mountpoint as a argument. This function will create a shmem GEM object in a given tmpfs mountpoint. This function will be useful for drivers that have a special mountpoint with flags enabled. Signed-off-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240923141348.2422499-7-mcanal@igalia.com
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_gem_shmem_helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_gem_shmem_helper.h b/include/drm/drm_gem_shmem_helper.h
index efbc9f27312b..d22e3fb53631 100644
--- a/include/drm/drm_gem_shmem_helper.h
+++ b/include/drm/drm_gem_shmem_helper.h
@@ -97,6 +97,9 @@ struct drm_gem_shmem_object {
container_of(obj, struct drm_gem_shmem_object, base)
struct drm_gem_shmem_object *drm_gem_shmem_create(struct drm_device *dev, size_t size);
+struct drm_gem_shmem_object *drm_gem_shmem_create_with_mnt(struct drm_device *dev,
+ size_t size,
+ struct vfsmount *gemfs);
void drm_gem_shmem_free(struct drm_gem_shmem_object *shmem);
void drm_gem_shmem_put_pages(struct drm_gem_shmem_object *shmem);