kfree_rcu_mightsleep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kfree_rcu_mightsleep πŸ’…

okay so this page lives in the Kernel API Manual, section 9 (that's the kernel API girlies, iykyk) πŸŽ€


✨ NAME ✨

kfree_rcu_mightsleep β€” literally kfree an object after a grace period. that's it, that's the vibe πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

kfree_rcu_mightsleep (ptr );

🌸 ARGUMENTS 🌸

  • ptr β€” pointer to kfree for single-argument invocations. bestie it's just a pointer, one singular argument, that's the whole thing 🫢

πŸ”₯ DESCRIPTION πŸ”₯

ok so when we're talking about the head-less variant, only ONE argument gets passed, and it's just a pointer that has to be freed after a grace period. so the semantic is literally:

kfree_rcu_mightsleep(ptr);

where ptr is the pointer to be freed by kvfree. no cap πŸ’…

⚠️ please note, bestie: the head-less way of freeing is permitted to be used from a context that has to follow the might_sleep annotation. otherwise, please switch and embed the rcu_head structure within the type of ptr. πŸ’€ don't skip this, fr fr

🌈 SEE ALSO 🌈

yesss the reference list, and it is LONG, so buckle up gorgeous 😭✨

The kernel file ./include/linux/rcupdate.h, plus:

like, she knows EVERYONE. main character energy fr πŸ‘‘πŸ¦‹


and that's the whole page, babe πŸ’œ this cutie came from ./include/linux and it's dated October 2026 β€” slay, see you in the group chat βœ¨πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from