Skip to content

Add Rust bindings for device property child nodes and reference args

Remo Senekowitsch linux-devicetree lkml rust-for-linux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Changes in v1 from the cover letter

* Fix resource leak of FwNodeReferenceArgs.
* Improve documentation of the type invariants of FwNodeReferenceArgs and how they are upheld at crate-internal use-sites.
* Remove derived implementation of Clone of FwNodeReferenceArgs. It would be unsafe according to the new type invariants.
* Add Debug implementation for FwNodeReferenceArgs.
* Add examples.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rust: device: Add child accessor and iteratorrust/kernel/device/property.rs+56 -00 replies
2/3rust: device: Add property_get_reference_argsrust/kernel/device/property.rs+102 -00 replies
3/3samples: rust: platform: Add property child and reference args examplesdrivers/of/unittest-data/tests-platform.dtsi samples/rust/rust_driver_platform.rs+19 -19 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchDirk Behme
1/3T-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] Add Rust bindings for device property child nodes and reference args

This patch series was split-off from an earlier one. [1]

changes in v1 (compared to previous patch series):
* Fix resource leak of FwNodeReferenceArgs.
* Improve documentation of the type invariants of FwNodeReferenceArgs and how they are upheld at crate-internal use-sites.
* Remove derived implementation of Clone of FwNodeReferenceArgs. It would be unsafe according to the new type invariants.
* Add Debug implementation for FwNodeReferenceArgs.
* Add examples.

Best regards,
Remo

[1] https://lore.kernel.org/lkml/[email protected]/

Remo Senekowitsch (3):
rust: device: Add child accessor and iterator
rust: device: Add property_get_reference_args
samples: rust: platform: Add property child and reference args
examples

 drivers/of/unittest-data/tests-platform.dtsi |   7 +
 rust/kernel/device/property.rs               | 158 +++++++++++++++++++
 samples/rust/rust_driver_platform.rs         |  13 +-
 3 files changed, 177 insertions(+), 1 deletion(-)
Signature · 1 line
2.49.0