]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: pin-init: internal: pin_data: add struct to record field info
authorMohamad Alsadhan <mo@sdhn.cc>
Tue, 12 May 2026 12:09:47 +0000 (13:09 +0100)
committerGary Guo <gary@garyguo.net>
Thu, 14 May 2026 19:17:58 +0000 (20:17 +0100)
commit4b60f38cd2a4b2d3288377f25100f8d67015988a
treea6fbb028c6a339f4ba995948aa86a9db109e69df
parent1e648c22abfe448d284314a0d05622a242ba4eac
rust: pin-init: internal: pin_data: add struct to record field info

Introduce `FieldInfo` struct to encapsulate field and other relevant data,
instead of carrying a pair of `(pinned, field)` in all places. This allows
us to add more information to the struct in the future.

Signed-off-by: Mohamad Alsadhan <mo@sdhn.cc>
Co-developed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260512-pin-init-sync-v1-2-81963130dfbd@garyguo.net
Signed-off-by: Gary Guo <gary@garyguo.net>
rust/pin-init/internal/src/pin_data.rs