cleanup_srcu_struct(9)
π cleanup_srcu_struct(9) β deconstruct a sleep-RCU structure
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little cutie from the kernel docs β short page, but lowkey important, so pay attention π«Ά
β¨ NAME β¨
cleanup_srcu_struct β deconstruct a sleep-RCU structure
Like, it's the breakup function for your SRCU struct. πβ¨
πΈ SYNOPSIS πΈ
void cleanup_srcu_struct (struct srcu_struct *ssp );
π ARGUMENTS π
sspβ the structure to clean up. That's it, that's the whole argument. Give it thesrcu_structyou want deconstructed and let the kernel cook. π
π¦ DESCRIPTION π¦
Okay so here's the vibe check: you must invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct. π
That's not a suggestion, that's the whole assignment. If you don't call it? You leak memory. π Like, actual memory leak. Not cute. Not slay. So clean up after yourself, bestie β it's giving basic hygiene. π§
β οΈ fr fr: skip this and the memory just sits there forever. no cap, the kernel is not your mom, it will not tidy your room for you. π
π₯ SEE ALSO π₯
Kernel file ./kernel/rcu/srcutree.c plus the whole friend group:
init_srcu_struct_generic(9)init_srcu_struct_fast(9)init_srcu_struct_fast_updown(9)call_srcu(9)synchronize_srcu_expedited(9)synchronize_srcu(9)get_state_synchronize_srcu(9)start_poll_synchronize_srcu(9)poll_state_synchronize_srcu(9)srcu_barrier(9)srcu_expedite_current(9)srcu_batches_completed(9)
iykyk β go read those next, they're iconic. π
so anyway, that's the page π this lil manual page lives under ./kernel/rcu, dated October 2026, and honestly? she ate. mwah π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms