svc_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svc_create(9) β€” from the Kernel API Manual, bestie ✨

okay so picture this: you're deep in the kernel, you're in net/sunrpc, and you need a whole entire RPC service to exist. that's the gig. this page is your girl. 🫢


🌸 NAME 🌸

svc_create β€” literally just Create an RPC service. that's it. that's the whole vibe. πŸ‘‘


✨ SYNOPSIS ✨

struct svc_serv * svc_create (struct svc_program *prog , unsigned int
bufsize , int (*threadfn)(void *data) );

yes it's one line, yes it's long, yes it returns a pointer to struct svc_serv (or NULL, we'll get there πŸ’€). copy it exactly, don't be cute with it.


πŸŽ€ ARGUMENTS πŸŽ€

  • prog β€” the RPC program your shiny new service is gonna handle. this is the main character. πŸ‘‘
  • bufsize β€” the maximum message size for prog. keep it honest, bestie. πŸ”₯
  • threadfn β€” a function to service RPC requests for prog. the signature is int (*threadfn)(void *data), so like, it takes a void *data and gives you back an int. slay. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

ngl this one's short and sweet: it Returns an instantiated struct svc_serv object or NULL. that's the whole description. no cap. πŸ’€

so like β€” you call it, and either you get a whole real service object back, or you get NULL and you have to deal with that emotionally. the manpage does not elaborate further. iconique of it honestly. 🌈

⚠️ heads up bestie: NULL is a real possibility here. that is all the page says about it. do with that what you will. πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

okay so there's a lot of siblings, buckle up:

that's a whole friend group fr fr. go read them too, iykyk. πŸ“šβœ¨


and that's the page, bestie!! πŸ’– this gem lives in ./net/sunrpc and it's stamped October 2026 β€” so like, bookmark it, screenshot it, tattoo it on your forearm, whatever. mwah. πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from