nfsd_nl_ser...s_get_dumpit(9)
π nfsd_nl_server_stats_get_dumpit(9) β Kernel API Manual π
okay bestie, this is a page from the Kernel API Manual (section 9), and the star of the show is nfsd_nl_server_stats_get_dumpit β the function that dumps NFS server statistics. it's giving "kernel internals but make it cute". let's get into it π
β¨ NAME β¨
nfsd_nl_server_stats_get_dumpit β dump NFS server statistics π
πΈ SYNOPSIS πΈ
int nfsd_nl_server_stats_get_dumpit (struct sk_buff *skb , struct
netlink_callback *cb );
literally that's the whole signature. short, sweet, slays. π«Ά
π¦ ARGUMENTS π¦
skbβ the reply buffer π like, this is where the answer goes, bestie.cbβ netlink metadata and command arguments ποΈ the whole context bundle, no cap.
π DESCRIPTION π
okay so the server-stats object gets emitted across one or more netlink messages. it's not always a one-and-done situation β it's giving "multi-part story arc" β¨
here's the tracking situation, and it's honestly iconic:
cb->args[0]tracks the current section πcb->args[1]tracks the entry index within that section π’
so if a section does not fit in the current message, it just gets resumed in the next one. no drama, no lost data, just a little continue-where-we-left-off moment. periodt. π
the scalar counters are small, so they get emitted once, in the first message. and then userspace merges the attributes from every message. teamwork makes the dream work fr fr π«Άπ
Returns the size of the reply, or a negative errno π (yes, the classic "size or sadness" return value, iykyk).
π₯ SEE ALSO π₯
Kernel file ./fs/nfsd/nfsctl.c and like, this whole friend group of functions π―ββοΈ:
nfsd_nl_rpc_status_get_dumpit(9)nfsd_nl_fh_key_set(9)nfsd_nl_threads_set_doit(9)nfsd_nl_threads_get_doit(9)nfsd_nl_version_set_doit(9)nfsd_nl_version_get_doit(9)nfsd_nl_validate_listeners(9)nfsd_nl_listener_set_doit(9)nfsd_nl_listener_get_doit(9)nfsd_nl_pool_mode_set_doit(9)nfsd_nl_pool_mode_get_doit(9)nfsd_nl_cache_flush_doit(9)nfsd_nl_unlock_ip_doit(9)nfsd_nl_unlock_filesystem_doit(9)nfsd_nl_unlock_export_doit(9)nfsd_net_init(9)nfsd_net_pre_exit(9)nfsd_net_exit(9)
πΈπ and that's the page, bestie! this one came from the source path ./fs/nfsd, dated October 2026, and it's part of the Kernel API Manual β go forth and dump those stats, you absolute main character πβ¨π
π¦ 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