sunrpc_nl_cache_flush_doit(9)
β¨ 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:
sunrpc_nl_unix_gid_get_reqs_dumpit(9)sunrpc_nl_parse_one_unix_gid(9)sunrpc_nl_unix_gid_set_reqs_doit(9)svcauth_null_accept(9)svcauth_tls_accept(9)svcauth_unix_accept(9)sunrpc_nl_ip_map_get_reqs_dumpit(9)sunrpc_nl_parse_one_ip_map(9)sunrpc_nl_ip_map_set_reqs_doit(9)
ngl bestie, if you're poking at theip_maporunix_gidcaches 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
- 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