Skip to content

rust: xarray: abstract xa_alloc and xa_alloc_cyclic

Onur Özkan linux-doc linux-mm lkml rust-for-linux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesIn review
  2. v13 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- Moved the pointer check into the constructor function.
- Minor updates on the function doc-comments.
- Minor updates on xa_alloc and xa_alloc_cyclic commit descriptions.
- Replaced bindings::xa_limit with Range<u32> on xa_alloc_cyclic and xa_alloc.
- Updated how alloc_cyclic handles the next pointer (it no longer requires a mutable reference)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4rust: xarray: move pointer check into `XArray::new`rust/kernel/xarray.rs+6 -40 replies
2/4rust: xarray: abstract `xa_alloc`rust/kernel/xarray.rs+40 -17 replies
3/4rust: xarray: abstract `xa_alloc_cyclic`rust/kernel/xarray.rs+50 -00 replies
4/4remove completed task from nova-core task listDocumentation/gpu/nova/core/todo.rst+0 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] rust: xarray: abstract xa_alloc and xa_alloc_cyclic

Second version of xa_alloc and xa_alloc_cyclic abstraction patch series. See the initial version at [1].

[1]: https://lore.kernel.org/all/[email protected]/T/#u

This series will also be sent to [email protected] which was not done in the previous submission.

Changes in v2:
- Moved the pointer check into the constructor function.
- Minor updates on the function doc-comments.
- Minor updates on xa_alloc and xa_alloc_cyclic commit descriptions.
- Replaced bindings::xa_limit with Range<u32> on xa_alloc_cyclic and xa_alloc.
- Updated how alloc_cyclic handles the next pointer (it no longer requires a mutable reference)

Onur Özkan (4):
rust: xarray: move pointer check into XArray::new
rust: xarray: abstract xa_alloc
rust: xarray: abstract xa_alloc_cyclic remove completed task from nova-core task list

 Documentation/gpu/nova/core/todo.rst |   8 ---
 rust/kernel/xarray.rs                | 101 +++++++++++++++++++++++++--
 2 files changed, 96 insertions(+), 13 deletions(-)

--
2.51.0