nfs4_purge_state_owners(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfs4_purge_state_owners(9) πŸ’…

okay so bestie, you're looking at a page from the Kernel API Manual, section 9, and the function is literally called nfs4_purge_state_owners. yes. we're doing kernel internals today. put your hair up. πŸŽ€


✨ NAME ✨

nfs4_purge_state_owners β€” release all the cached state owners. all of them. every last one. no crumbs. 🧹


🌸 SYNOPSIS 🌸

void nfs4_purge_state_owners (struct nfs_server *server , struct
       list_head *head );

like, that's the whole signature. she's a void, she returns nothing, she simply does. main character energy fr fr. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • server β€” the nfs_server holding all those cached state owners you're about to release. yes, that one. πŸ–₯️
  • head β€” the resulting list of state owners. this is where they all end up. think of it as the group chat they get yeeted into. πŸ“‹

πŸ’– DESCRIPTION πŸ’–

so this one gets called at umount time. 🫢

by then, the remaining state owners are chilling on the LRU with a ref count of zero. zero. nada. they're giving ghosted-by-the-refcount energy. πŸ‘»

⚠️ important caveat bestie, don't miss this: the state owners are not freed here. they're just added to the list head, which you can later use as an argument to nfs4_free_state_owners. so this is the staging step, not the cleanup step. the actual free happens somewhere else. iykyk. πŸ’€

like, read that again if you need to β€” nfs4_purge_state_owners purges ownership, not memory. different vibes entirely. ✨


🌈 SEE ALSO 🌈


and that's the whole page, bestie. no cap, no filler, just kernel state-owner lore. slay. πŸ’œ

this little masterpiece lives in ./fs/nfs, dated October 2026, and it's nfs4_purge_state_owners(9) β€” go forth and purge responsibly. mwah. πŸ’‹πŸŽ€

πŸ“¦ where this page comes from