]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/gem: Create shmem GEM object in a given mountpoint
authorMaíra Canal <mcanal@igalia.com>
Mon, 23 Sep 2024 13:55:10 +0000 (10:55 -0300)
committerMaíra Canal <mcanal@igalia.com>
Wed, 25 Sep 2024 11:40:22 +0000 (08:40 -0300)
commitbe431dfec976e553a08883e26d0d0cc2598a8dfa
treede41ddc1654260290b563e9f08b75dda0f89b35f
parenteb8d395f68421449c6201d3019f51011d034f00e
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
drivers/gpu/drm/drm_gem_shmem_helper.c
include/drm/drm_gem_shmem_helper.h