From: "Danilo Krummrich" <dakr@kernel.org>
To: "Miguel Ojeda" <ojeda@kernel.org>
Cc: "Alice Ryhl" <aliceryhl@google.com>,
"Lorenzo Stoakes" <ljs@kernel.org>,
"Vlastimil Babka" <vbabka@kernel.org>,
"Liam R. Howlett" <liam@infradead.org>,
"Uladzislau Rezki" <urezki@gmail.com>,
"Boqun Feng" <boqun@kernel.org>, "Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Trevor Gross" <tmgross@umich.edu>,
"Daniel Almeida" <daniel.almeida@collabora.com>,
"Tamir Duberstein" <tamird@kernel.org>,
"Alexandre Courbot" <acourbot@nvidia.com>,
"Onur Özkan" <work@onurozkan.dev>,
rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] Alloc changes for 7.5-rc1
Date: Sat, 05 Dec 2026 17:01:35 +0100 [thread overview]
Message-ID: <DNCXBAPHTATC.1TJAHOTP9ITJD@kernel.org> (raw)
Hi Miguel,
The stable tag alloc-vec-7.5-rc1, containing ArrayVec and
Vec::{try_}push_init(), has been shared with the DRM tree.
Thanks,
Danilo
The following changes since commit 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4:
Linux 7.4-rc1 (2026-11-01 13:26:31 -0800)
are available in the Git repository at:
https://github.com/Rust-for-Linux/linux.git tags/alloc-7.5-rc1
for you to fetch changes up to 0af3f653e1559e651c0fe143791a3e125c7f6a29:
rust: alloc: add a ring buffer implementation (2026-12-02 20:55:51 +0100)
----------------------------------------------------------------
Alloc changes for 7.5-rc1
- Collections:
- Add ArrayVec, a fixed-capacity vector with embedded storage and
support for in-place construction and element initialization.
- Add RingBuffer, a fixed-capacity FIFO buffer generic over the
backing allocator.
- Add Vec::try_push_init() and Vec::push_init() for in-place element
initialization with fallible and infallible initializers.
- Check the length <= capacity precondition in Vec::from_raw_parts()
with a debug assertion for nonzero-sized elements.
- Memalloc:
- Add alloc_scope() for per-task NoIo, NoFs, NoReclaim and Pin
allocation policies, restoring the previous policies when the
closure returns.
----------------------------------------------------------------
Andreas Hindborg (2):
rust: alloc: add per-task memalloc scope abstractions
rust: alloc: add a ring buffer implementation
Eliot Courtney (2):
rust: alloc: add Vec::try_push_init and Vec::push_init
rust: alloc: add ArrayVec
Peder Bergan (1):
rust: alloc: check the length precondition in Vec::from_raw_parts
rust/bindings/bindings_helper.h | 1 +
rust/helpers/mm.c | 10 +++
rust/kernel/Kconfig.test | 10 +++
rust/kernel/alloc.rs | 10 +++
rust/kernel/alloc/arrayvec.rs | 351 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rust/kernel/alloc/kvec.rs | 103 ++++++++++++++++++++++++++-
rust/kernel/alloc/kvec/errors.rs | 32 ++++++++-
rust/kernel/alloc/ringbuffer.rs | 453 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rust/kernel/alloc/scoped.rs | 134 +++++++++++++++++++++++++++++++++++
9 files changed, 1100 insertions(+), 4 deletions(-)
create mode 100644 rust/kernel/alloc/arrayvec.rs
create mode 100644 rust/kernel/alloc/ringbuffer.rs
create mode 100644 rust/kernel/alloc/scoped.rs
reply other threads:[~2026-12-05 16:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNCXBAPHTATC.1TJAHOTP9ITJD@kernel.org \
--to=dakr@kernel.org \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=gary@garyguo.net \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ljs@kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tamird@kernel.org \
--cc=tmgross@umich.edu \
--cc=urezki@gmail.com \
--cc=vbabka@kernel.org \
--cc=work@onurozkan.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox