Skip to content

rust/kernel: Add bindings for manually creating devices

Lyude Paul lkml oe-kbuild-all rust-for-linux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rust/kernel: Add platform::Device::from_raw()rust/kernel/platform.rs+16 -11 reply
2/2rust/kernel: Add platform::ModuleDevicerust/kernel/platform.rs+94 -229 replies

Reviews trailers per patch

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

PatchMaíra Canal
1/2
2/2Co-authored-by

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 0/2] rust/kernel: Add bindings for manually creating devices

As many of you are probably aware, there's a number of kernel modules in the Linux kernel that don't actually probe a device on a bus - but instead simply create a virtual platform device. One such example is the virmidi driver (sound/drivers/virmidi.c) These patches add the ability to do this with our current platform device bindings for rust.

The main usecase for this is the WIP driver, rvkms:

https://patchwork.freedesktop.org/series/131522/

Lyude Paul (2):
rust/kernel: Add platform::Device::from_raw()
rust/kernel: Add platform::ModuleDevice

 rust/kernel/platform.rs | 111 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 109 insertions(+), 2 deletions(-)

base-commit: b323d8e7bc03d27dec646bfdccb7d1a92411f189

Signature · 1 line
2.47.1