[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241022224832.1505432-1-abdiel.janulgue@gmail.com>
Date: Wed, 23 Oct 2024 01:44:44 +0300
From: Abdiel Janulgue <abdiel.janulgue@...il.com>
To: rust-for-linux@...r.kernel.org,
aliceryhl@...gle.com
Cc: dakr@...hat.com,
linux-kernel@...r.kernel.org,
airlied@...hat.com,
miguel.ojeda.sandonis@...il.com,
boqun.feng@...il.com,
Abdiel Janulgue <abdiel.janulgue@...il.com>
Subject: [PATCH v2 0/5] Introduce Owned type and Ownable trait (was: "rust: page: Add support for vmalloc_to_page")
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@gmail.com/
[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
Powered by blists - more mailing lists