sunrpc_cache_notify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 β€” the cache_detail for the cache πŸ’– like, this is the cache you're repping, main character energy fr
  • h β€” a cache_head entry. Ngl bestie, this one is unused β€” it's reserved for future use πŸ™ˆ so just... pass it and move on, it's giving placeholder
  • cache_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 πŸ¦‹


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