sunrpc_cache_notify(9)
πΈ NAME πΈ
sunrpc_cache_notify β bestie, this is the one that sends a netlink notification when a cache event happens β¨ (it's a kernel API manual page, iykyk π
)
π SYNOPSIS π
int sunrpc_cache_notify (struct cache_detail *cd , struct cache_head *h
, u32 cache_type );
Yeah that's the whole signature, no cap β three args, one int back π«Ά
β¨ ARGUMENTS β¨
cdβ thecache_detailfor the cache π like, this is the cache you're repping, main character energy frhβ acache_headentry. Ngl bestie, this one is unused β it's reserved for future use π so just... pass it and move on, it's giving placeholdercache_typeβ the cache type identifier, e.g.SUNRPC_CACHE_TYPE_UNIX_GIDπ
π₯ DESCRIPTION π₯
Okay so here's the vibe: this function sends a SUNRPC_CMD_CACHE_NOTIFY multicast message on the "exportd" group β but only if any listeners are actually present π like it's not gonna shout into the void for no reason, that's so considerate of it honestly.
And what does it give you back? It returns 0 on success, or a negative errno if things went sideways π that's it, that's the whole function, she's simple and she slays π
Heads up bestie: that return is 0 for success and negative errno for failure β don't be out here checking for positive numbers, that's not the vibe π«
π¦ SEE ALSO π¦
- The kernel file
./net/sunrpc/cache.cβ go read it, it's iconic π§ sunrpc_cache_requests_count(9)πsunrpc_cache_requests_snapshot(9)β
And that's a wrap babes π this little gem lives in ./net/sunrpc, dated October 2026, and she goes by sunrpc_cache_notify(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