nfs4_discov...ver_trunking(9)
π nfs4_discov...ver_trunking(9) π
okay so bestie, welcome to the Kernel API Manual β yes, that Kernel API Manual β and today's main character is nfs4_discover_server_trunking. it's giving networking detective energy and honestly? iconic. π΅οΈββοΈβ¨
πΈ NAME πΈ
nfs4_discover_server_trunking β detect server IP address trunking π
like. it finds out whether the server is doing the trunking thing. that's the whole vibe. π
β¨ SYNOPSIS β¨
int nfs4_discover_server_trunking (struct nfs_client *clp , struct
nfs_client **result );
literally right there. two arguments. one int coming back at you. slay. π«Ά
π ARGUMENTS π
clpβ thenfs_clientunder test π like the one we're putting in the hot seat, nglresultβ OUT: foundnfs_client, orclpπ so it's an output param, and what lands in it is either thenfs_clientwe found or justclpitself. iykyk
π¦ DESCRIPTION π¦
returns zero or a negative errno. periodt. π
and if zero comes back? that means an nfs_client pointer gets planted in "result". yup, zero is the good one, the pointer shows up, the whole thing ate. π
β NOTE β
heads up bestie, this one's important: since we are invoked in process context, and not from inside the state manager, we cannot use nfs4_handle_reclaim_lease_error. π no cap. that function is just not available to us here. don't try it, the vibe check says no. π
π§ SEE ALSO π§
kernel file ./fs/nfs/nfs4state.c and the whole friend group π:
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_purge_state_owners(9)nfs4_free_state_owners(9)nfs4_schedule_migration_recovery(9)nfs4_schedule_lease_moved_recovery(9)
and that's the page!! π source spot is ./fs/nfs, dated October 2026 β mwah, kisses, go read the kernel source bestie πππ§ββοΈ
π¦ 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