Skip to content

Documentation for Device / Driver infrastructure

Danilo Krummrich lkml rust-for-linux 2 versions – Applied

Status from this message: Applied to driver-core-linus, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 9 repliesApplied
  2. v13 patches 16 repliesSuperseded

Changes in v2 from the cover letter

- Remove redundant DeviceContext dereference hierarchy.
- Separate links as suggested by Alice.
- Add a note that the guarantee for a Device reference to have a certain DeviceContext comes from the specific scope the Device reference is valid in.
- "structures" -> "types"

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3device: rust: expand documentation for DeviceContextrust/kernel/device.rs+58 -113 replies
2/3device: rust: expand documentation for Devicerust/kernel/device.rs+126 -133 replies
3/3driver: rust: expand documentation for driver infrastructurerust/kernel/driver.rs+87 -22 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchGreg Kroah-HartmanDaniel AlmeidaAlice RyhlAlexandre Courbot
1/3R-b R-b R-b R-b
2/3R-b R-b R-b R-b
3/3R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] Documentation for Device / Driver infrastructure

This patch series expands the documentation for the generic device and driver infrastructure and provides a guideline on how to implement bus and class specific devices as well as bus specific driver infrastructure, i.e. bus abstractions. It also expands on the existing documentation of device context types.

Changes in v2:
- Remove redundant DeviceContext dereference hierarchy.
- Separate links as suggested by Alice.
- Add a note that the guarantee for a Device reference to have a certain DeviceContext comes from the specific scope the Device reference is valid in.
- "structures" -> "types"

Danilo Krummrich (3):
device: rust: expand documentation for DeviceContext
device: rust: expand documentation for Device
driver: rust: expand documentation for driver infrastructure

 rust/kernel/device.rs | 208 +++++++++++++++++++++++++++++++++++++-----
 rust/kernel/driver.rs |  89 +++++++++++++++++-
 2 files changed, 271 insertions(+), 26 deletions(-)

base-commit: 51a486feac0ca002bee6429f03da0a6c206d0dc5

Signature · 1 line
2.50.0