[Pre-RFC] BTF relocations
Rust Internals [Unofficial]
April 10, 2026
I guess this kind of attribute has very similar consequences for the struct as the ARM scalable vectors that the sized hierarchy work is looking at. BTF provides relocations for both field offsets and the struct size, so this means that task_struct is Sized but not const Sized under the terminology introduced here. Its size is constant at runtime, but not known at compile time.
Discussion in the ATmosphere