[PATCH v2 0/5] Introduce Owned type and Ownable trait (was: "rust: page: Add support for vmalloc_to_page")

From: Abdiel Janulgue
Date: Tue Oct 22 2024 - 18:49:23 EST


Hi all,

This series introduces the Owned type and Ownable trait which is the v2 of
"rust: page: Add support for vmalloc_to_page" [0]. This series includes changes
for firmware as well to make use of the new wrapper.

Changes since v2:
- Use Owned and Ownable types for constructing Page as suggested in [1]
instad of using ptr::read().

[0] https://lore.kernel.org/rust-for-linux/20241007202752.3096472-1-abdiel.janulgue@xxxxxxxxx/
[1] https://lore.kernel.org/rust-for-linux/ZwUYmunVpzpexGV8@boqun-archlinux/

Abdiel Janulgue (5):
rust: types: add `Owned` type and `Ownable` trait
rust: page: Make ownership of the page pointer explicit.
rust: page: Extend support to vmalloc_to_page
rust: page: Add page_slice_to_page
rust: firmware: implement `Ownable` for Firmware

rust/kernel/firmware.rs | 31 ++++++-----
rust/kernel/page.rs | 116 +++++++++++++++++++++++++++++++++++-----
rust/kernel/types.rs | 62 +++++++++++++++++++++
3 files changed, 184 insertions(+), 25 deletions(-)


base-commit: 15541c9263ce34ff95a06bc68f45d9bc5c990bcd
--
2.43.0