rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] Rust xarray for v6.16
@ 2025-05-06 11:05 Andreas Hindborg
  2025-05-18 20:48 ` Miguel Ojeda
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Hindborg @ 2025-05-06 11:05 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, Tamir Duberstein, Andreas Hindborg,
	Matthew Wilcox, rust-for-linux, linux-kernel

Hi Miguel,

Please pull these changes to enable access to the xarray data structure
from rust.

The following changes since commit 9c32cda43eb78f78c73aee4aa344b777714e259b:

  Linux 6.15-rc3 (2025-04-20 13:43:47 -0700)

are available in the Git repository at:

  https://github.com/rust-for-linux/linux.git tags/rust-xarray-for-v6.16

for you to fetch changes up to fa616196fbea12462107774fb6a1908c95f71cf0:

  MAINTAINERS: add entry for Rust XArray API (2025-05-01 11:37:59 +0200)


Best regards,
Andreas Hindborg

----------------------------------------------------------------
Rust xarray API for v6.16

Introduce Rust support for the `xarray` data structure:

 - Add a rust abstraction for the `xarray` data structure. This abstraction
   allows rust code to leverage the `xarray` to store types that implement
   `ForeignOwnable`. This support is a dependency for memory backing feature of
   the rust null block driver, which is waiting to be merged.

 - Set up an entry in MAINTAINERS for the xarray rust support. Patches will go
   to the new rust xarray tree and then via the rust subsystem tree for now.

`kernel` crate:

 - Allow `ForeignOwnable` to carry information about the pointed-to type. This
   helps asserting alignment requirements for the pointer passed to the foreign
   language.

----------------------------------------------------------------
Tamir Duberstein (3):
      rust: types: add `ForeignOwnable::PointedTo`
      rust: xarray: Add an abstraction for XArray
      MAINTAINERS: add entry for Rust XArray API

 MAINTAINERS                     |  11 ++
 rust/bindings/bindings_helper.h |   6 +
 rust/helpers/helpers.c          |   1 +
 rust/helpers/xarray.c           |  28 ++++
 rust/kernel/alloc/kbox.rs       |  38 +++---
 rust/kernel/lib.rs              |   1 +
 rust/kernel/miscdevice.rs       |  10 +-
 rust/kernel/pci.rs              |   2 +-
 rust/kernel/platform.rs         |   2 +-
 rust/kernel/sync/arc.rs         |  21 +--
 rust/kernel/types.rs            |  46 ++++---
 rust/kernel/xarray.rs           | 275 ++++++++++++++++++++++++++++++++++++++++
 12 files changed, 392 insertions(+), 49 deletions(-)
 create mode 100644 rust/helpers/xarray.c
 create mode 100644 rust/kernel/xarray.rs


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] Rust xarray for v6.16
  2025-05-06 11:05 [GIT PULL] Rust xarray for v6.16 Andreas Hindborg
@ 2025-05-18 20:48 ` Miguel Ojeda
  0 siblings, 0 replies; 2+ messages in thread
From: Miguel Ojeda @ 2025-05-18 20:48 UTC (permalink / raw)
  To: Andreas Hindborg
  Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, Tamir Duberstein, Matthew Wilcox,
	rust-for-linux, linux-kernel

On Tue, May 6, 2025 at 1:05 PM Andreas Hindborg <a.hindborg@kernel.org> wrote:
>
>   https://github.com/rust-for-linux/linux.git tags/rust-xarray-for-v6.16

Merged into `rust-next` -- thank you!

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-18 20:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06 11:05 [GIT PULL] Rust xarray for v6.16 Andreas Hindborg
2025-05-18 20:48 ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).