nlmclnt_lookup_host(9)
π NAME π
nlmclnt_lookup_host β okay so, from the Kernel API Manual (section 9 bestie, we're in the kernel docs now π
), this is the function that finds you an NLM host handle matching a remote server. that's it, that's the whole vibe check β¨
π¦ SYNOPSIS π¦
struct nlm_host * nlmclnt_lookup_host (const struct sockaddr *sap ,
const size_t salen , const unsigned short protocol , const u32 version ,
const char *hostname , int noresvport , struct net *net , const struct
cred *cred );
like look at all those params π she takes eight arguments, highkey an overachiever, we stan π«Ά
π ARGUMENTS π
sapβ the network address of the server π like, where the server actually lives, address-wise.salenβ the length of the server address π (yes she needs to know how big the address is, don't ask, it's a whole thing).protocolβ the transport protocol to use π your ride, basically.versionβ the NLM protocol version π’ which generation of NLM we're dealing with.hostnameβ okay so the original gives her zero description, not one single word, and honestly? iconic. main character energy π she's just there, iykyk.noresvportβ set this to1if a non-privileged port should be used π slay, no root required.netβ pointer to the net namespace πͺ her own little universe.credβ pointer tocredπͺͺ credentials, the whole "who am i" of it all.
π DESCRIPTION π
so here's the tea β: this returns an nlm_host structure that matches the passed-in [server address, transport protocol, NLM version, server hostname] π all four, matching, no cap.
and if one of those doesn't already exist in the host cache? π§ she creates a new handle and returns it. literally just builds it out of thin air, ate and left no crumbs π
β SEE ALSO β
Kernel file ./fs/lockd/host.c β go read the source bestie, it's giving required reading π
nlmclnt_release_host(9)nlmclnt_shutdown_rpc_clnt(9)nlmsvc_lookup_host(9)nlmsvc_release_host(9)nlm_rebind_host(9)nlm_host_rebooted(9)
okay that's the whole page, you ate that π and real quick, the receipts: this one came from ./fs/lockd, dated October 2026, and the page is literally called nlmclnt_lookup_host(9) β periodt π
β¨
π¦ 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