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
This commit is contained in:
Maíra Canal 2024-09-23 10:55:10 -03:00
commit be431dfec9
No known key found for this signature in database
GPG key ID: 6E388F05AB35B7CF
2 changed files with 29 additions and 4 deletions