sunrpc_nl_cache_flush_doit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sunrpc_nl_cache_flush_doit(9) ✨

okay so bestie, we're in the Kernel API Manual today and the star of the show is sunrpc_nl_cache_flush_doit β€” yes that's a whole mouthful, no I will not be shortening it πŸ’…

🌸 NAME 🌸

sunrpc_nl_cache_flush_doit β€” flush sunrpc caches via netlink

like literally, that's the whole vibe. it flushes sunrpc caches, and it does it through netlink. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

int sunrpc_nl_cache_flush_doit (struct sk_buff *skb , struct genl_info
*info );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” reply buffer. that's the thing you're writing your answer into 🫢
  • info β€” netlink metadata and command arguments. all the context and the args live in here ✨

πŸ’– DESCRIPTION πŸ’–

okay so here's what's actually happening: this function flushes the ip_map and/or unix_gid caches. iconic behavior honestly.

here's the tea πŸ”₯ β€” if SUNRPC_A_CACHE_FLUSH_MASK is provided, then only the caches indicated by that bitmask get flushed. and the bits are:

  • bit 1 = ip_map
  • bit 2 = unix_gid

but if you just... don't provide it? then it flushes both. generous queen energy πŸ‘‘

returns 0 on success, or a negative errno if things went sideways 😭


🌈 SEE ALSO 🌈

kernel file ./net/sunrpc/svcauth_unix.c β€” go read her, she's right there 🧚

and the whole friend group:


ngl bestie, if you're poking at the ip_map or unix_gid caches through netlink, this is your girl. read the mask bits twice, flush once πŸ’€

that's the whole page, mwah πŸ’‹ this came to you from ./net/sunrpc in October 2026, on the sunrpc_nl_cache_flush_doit(9) tip β€” stay hydrated, stay flushed πŸ“πŸŒΈπŸ’œ

πŸ“¦ where this page comes from