nfs4_purge_state_owners(9)
π
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β thenfs_serverholding 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 listhead, which you can later use as an argument tonfs4_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 π
- Kernel file
./fs/nfs/nfs4state.cβ the source, the origin, the mothership π§ nfs4_get_renew_cred(9)nfs41_discover_server_trunking(9)nfs4_get_clid_cred(9)nfs4_get_state_owner(9)nfs4_put_state_owner(9)nfs4_free_state_owners(9)β the one you passheadto, remember? π₯nfs4_schedule_migration_recovery(9)nfs4_schedule_lease_moved_recovery(9)nfs4_discover_server_trunking(9)
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
- 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