linux/samples/rust
Fiona Behrens 354fd6e86f rust: io: rename io::Io accessors
Rename the I/O accessors provided by `Io` to encode the type as
number instead of letter. This is in preparation for Port I/O support
to use a trait for generic accessors.

Add a `c_fn` argument to the accessor generation macro to translate
between rust and C names.

Suggested-by: Danilo Krummrich <dakr@kernel.org>
Link: https://rust-for-linux.zulipchat.com/#narrow/channel/288089-General/topic/PIO.20support/near/499460541
Signed-off-by: Fiona Behrens <me@kloenk.dev>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Acked-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250217-io-generic-rename-v1-1-06d97a9e3179@kloenk.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-22 15:44:19 +01:00
..
hostprogs
Kconfig rust/kernel: Add faux device bindings 2025-02-13 16:58:58 +01:00
Makefile rust/kernel: Add faux device bindings 2025-02-13 16:58:58 +01:00
rust_driver_faux.rs rust/kernel: Add faux device bindings 2025-02-13 16:58:58 +01:00
rust_driver_pci.rs rust: io: rename io::Io accessors 2025-02-22 15:44:19 +01:00
rust_driver_platform.rs samples: rust: add Rust platform sample driver 2024-12-20 17:43:02 +01:00
rust_minimal.rs rust: treewide: switch to the kernel Vec type 2024-10-15 23:10:32 +02:00
rust_misc_device.rs samples: rust_misc_device: Provide an example C program to exercise functionality 2024-12-16 16:12:56 +01:00
rust_print_events.c rust: samples: add tracepoint to Rust sample 2024-11-04 16:21:44 -05:00
rust_print_main.rs rust: use derive(CoercePointee) on rustc >= 1.84.0 2025-01-13 23:45:30 +01:00