All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] Alloc changes for 7.5-rc1
@ 2026-12-05 16:01 Danilo Krummrich
  0 siblings, 0 replies; only message in thread
From: Danilo Krummrich @ 2026-12-05 16:01 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: Alice Ryhl, Lorenzo Stoakes, Vlastimil Babka, Liam R. Howlett,
	Uladzislau Rezki, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Trevor Gross, Daniel Almeida,
	Tamir Duberstein, Alexandre Courbot, Onur Özkan,
	rust-for-linux, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-05 16:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 16:01 [GIT PULL] Alloc changes for 7.5-rc1 Danilo Krummrich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.