rust: drm: gem: shmem: Add DRM shmem helper abstraction
The DRM shmem helper includes common code useful for drivers which
allocate GEM objects as anonymous shmem. Add a Rust abstraction for
this. Drivers can choose the raw GEM implementation or the shmem layer,
depending on their needs.
Lyude changelog:
* Rebase
* Squash "rust: drm: device: Convert Device to AlwaysRefCounted" as this
commit doesn't compile without it anyway
Signed-off-by:
Asahi Lina <lina@asahilina.net>
Showing
- rust/bindings/bindings_helper.h 2 additions, 0 deletionsrust/bindings/bindings_helper.h
- rust/helpers/drm/drm.c 3 additions, 0 deletionsrust/helpers/drm/drm.c
- rust/helpers/drm/gem_shmem_helper.c 44 additions, 0 deletionsrust/helpers/drm/gem_shmem_helper.c
- rust/helpers/helpers.c 1 addition, 0 deletionsrust/helpers/helpers.c
- rust/helpers/scatterlist.c 13 additions, 0 deletionsrust/helpers/scatterlist.c
- rust/kernel/drm/gem/mod.rs 3 additions, 2 deletionsrust/kernel/drm/gem/mod.rs
- rust/kernel/drm/gem/shmem.rs 410 additions, 0 deletionsrust/kernel/drm/gem/shmem.rs
rust/helpers/drm/gem_shmem_helper.c
0 → 100644
rust/helpers/scatterlist.c
0 → 100644
rust/kernel/drm/gem/shmem.rs
0 → 100644
Please register or sign in to comment