svc_serv_nrpools(9)
β¨ svc_serv_nrpools(9) β¨
okay so bestie, welcome to svc_serv_nrpools(9) from the Kernel API Manual π this one is short, sweet, and lowkey iconic β no cap.
π NAME π
svc_serv_nrpools β number of thread pools backing a service
π«Ά SYNOPSIS π«Ά
unsigned int svc_serv_nrpools (const struct svc_serv *serv );
π ARGUMENTS π
servβ An RPC service
π DESCRIPTION π
Pooled services all share the global svc_pool_map, so their pool count is svc_pool_map.npools. Unpooled services have a single pool. Reading npools without svc_pool_map_mutex is safe: a pooled service holds a map reference for its whole lifetime, so npools is stable once set.
Return value: the number of pools in serv β¨
π SEE ALSO π
Kernel file ./net/sunrpc/svc.c β then the whole squad:
sunrpc_get_pool_mode(9)svc_pool_for_cpu(9)svc_create(9)svc_create_pooled(9)svc_pool_wake_idle_thread(9)svc_new_thread(9)svc_set_pool_threads(9)svc_set_num_threads(9)svc_serv_maxthreads(9)svc_rqst_replace_page(9)svc_rqst_release_pages(9)svc_exit_thread(9)svc_register(9)svc_stat_alloc_counts(9)svc_stat_free_counts(9)svc_process(9)svc_process_bc(9)svc_max_payload(9)svc_proc_name(9)svc_encode_result_payload(9)svc_fill_symlink_pathname(9)
xoxo, from ./net/sunrpc, October 2026, svc_serv_nrpools(9) ππ¦
π¦ 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