Files
linux/rust/kernel
Tamir Duberstein 5d840b4c49 rust: list: add impl_list_item! examples
There's a comprehensive example in `rust/kernel/list.rs` but it doesn't
exercise the `using ListLinksSelfPtr` variant nor the generic cases. Add
that here. Generalize `impl_has_list_links_self_ptr` to handle nested
fields in the same manner as `impl_has_list_links`.

Tested-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250709-list-no-offset-v4-5-a429e75840a9@gmail.com
[ Fixed Rust < 1.82 build by enabling the `offset_of_nested`
  feature. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-07-19 23:18:18 +02:00
..
2025-07-15 21:01:48 +02:00
2025-06-22 23:09:32 +02:00
2025-06-22 23:08:42 +02:00
2025-03-16 21:59:19 +01:00
2025-06-22 23:09:17 +02:00
2024-10-08 15:44:36 +02:00
2025-06-22 23:08:42 +02:00
2025-06-22 23:09:32 +02:00
2024-11-04 16:21:44 -05:00