svc_create(9)
π 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 forprog. keep it honest, bestie. π₯threadfnβ a function to service RPC requests forprog. the signature isint (*threadfn)(void *data), so like, it takes avoid *dataand gives you back anint. 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:
- Kernel file
./net/sunrpc/svc.c sunrpc_get_pool_mode(9)svc_serv_nrpools(9)svc_pool_for_cpu(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)
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
- 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