svc_register(9)
π svc_register β like, the Kernel API Manual entry, bestie β¨
Okay so real talk, this is a page from the Kernel API Manual (svc_register(9), section 9, the kernel-functions girlies) and it's lowkey short but it ate. Let's get into it π
β¨ NAME β¨
svc_register β register an RPC service with the local portmapper π«Ά
πΈ SYNOPSIS πΈ
int svc_register (const struct svc_serv *serv , struct net *net , const
int family , const unsigned short proto , const unsigned short port );
It returns an int, bestie. That's the whole vibe check. π
π¦ ARGUMENTS π¦
servβ thesvc_servstruct for the service you're registering. Like, the actual service object itself, main character energy πnetβ the net namespace for the service to register. Yes, namespace. Not me forgetting namespaces exist πfamilyβ protocol family of the service's listener socket. So like, the family your listener is repping πprotoβ transport protocol number to advertise. A number, okurrr, not a name β a number π₯portβ port to advertise. That's it, that's the whole thing π
π DESCRIPTION π
Here's the tea: the service gets registered for any address in the passed-in protocol family. That's literally the description. Short and iconic, no notes β
So like, whenever you hand over family, you're signing up the service for every address in that protocol family β not one specific address, not a little range, any address in it. Slay π«
π§ SEE ALSO π§
Kernel file ./net/sunrpc/svc.c β yes, that's where the actual source lives, iykyk π
And the whole friend group, fr fr:
sunrpc_get_pool_mode(9)svc_serv_nrpools(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_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)
That's twenty pages of friends and every single one of them is invited to the group chat π«Άβ¨
π also hey, quick heads up β theSEE ALSOabove is copy-paste-safe, every single one of these is a real(9)page, so don't come for me if you go clicking around π
okay that's the whole page and honestly? she's short but she's powerful. go register your service, bestie, the portmapper is waiting π
this has been svc_register(9) from ./net/sunrpc, dated October 2026 β mwah, love u, bye π¦β¨
π¦ 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