diff options
| author | Lyude Paul <lyude@redhat.com> | 2026-05-29 14:34:03 -0400 |
|---|---|---|
| committer | Lyude Paul <lyude@redhat.com> | 2026-06-02 13:16:40 -0400 |
| commit | b78dab829760aee9b83f5cf15550a0fe36c6f4b0 (patch) | |
| tree | 43cdc422b521da1430558ac27e3a761245853044 /include/linux/timerqueue.h | |
| parent | 04b325fb3456df0ffa7d6a8ac5cb4f94b860b575 (diff) | |
drm/gem/shmem: Introduce __drm_gem_shmem_free_sgt_locked()
One of the complications of trying to use the shmem helpers to create a
scatterlist for shmem objects is that we need to be able to provide a
guarantee that the driver cannot be unbound for the lifetime of the
scatterlist.
The easiest way of handling this seems to be just hooking up an unmap
operation to devres the first time we create a scatterlist, which allows us
to still take advantage of gem shmem facilities without breaking that
guarantee. To allow for this, we extract __drm_gem_shmem_free_sgt_locked()
- which allows a caller (e.g. the rust bindings) to manually unmap the sgt
for a gem object as needed.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260529183702.677677-6-lyude@redhat.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
