svc_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the svc_serv struct 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:

That's twenty pages of friends and every single one of them is invited to the group chat 🫢✨


πŸŽ€ also hey, quick heads up β€” the SEE ALSO above 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