On Wed, Dec 6, 2023 at 2:40 PM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote: > > I can reimplement these specific functions as inline Rust functions, > > That would be good, but how are you going to do that without duplicating > the horror that is struct task_struct ? That shouldn't be an issue. The bindgen tool takes care of generating a Rust version of struct task_struct for us at build time. The only thing it can't handle is inline functions and #defines. I'll respond to the other things later. But thank you for the thorough explanation! Alice