Files
linux/rust/kernel
Alice Ryhl 998c65733b rust: list: extract common code for insertion
To prepare for a new cursor API that has the ability to insert elements
into the list, extract the common code needed for this operation into a
new `insert_inner` method.

Both `push_back` and `push_front` are updated to use the new function.

Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250210-cursor-between-v7-1-36f0215181ed@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-03-08 22:35:34 +01:00
..
2024-09-30 13:02:29 +02:00
2025-02-13 16:58:58 +01:00
2024-12-20 17:19:26 +01:00
2025-02-13 16:58:58 +01:00
2024-12-20 17:21:04 +01:00
2024-10-08 15:44:36 +02:00
2024-12-16 21:49:33 +01:00
2024-12-20 17:19:26 +01:00
2025-03-06 20:59:45 +01:00
2024-11-10 23:58:00 +01:00
2024-11-04 16:21:44 -05:00