svc_thread_init_status(9)
π svc_thread_init_status(9) β the "did my thread survive init" check-in
okay so bestie, welcome to the kernel API manual, section 9 of the manual pages, and today's main character is svc_thread_init_status β¨ she's a void function, she's lowkey dramatic (she might never return π), and she's here to tell the world whether a thread actually got its life together. let's get into it π«Ά
πΈ NAME πΈ
svc_thread_init_status β the function that reports whether a thread has initialised successfully. that's it, that's the whole vibe check π
β¨ SYNOPSIS β¨
void svc_thread_init_status (struct svc_rqst *rqstp , int err );
two args, no return value, no cap. she just does her thing π₯
π ARGUMENTS π
rqstpβ the thread in question. like, this thread. the one we're talking about πerrβ anerrnocode. a number that says how it went, basically π
π¦ DESCRIPTION π¦
okay so here's the situation. after a sunrpc svc_thread does any of its initialisation that could potentially fail, and before it starts doing its normal work, it must call svc_thread_init_status β and it has to pass in an appropriate error, or zero if everything's chill π
so like:
- if you pass zero, the thread is ready, she's thriving, and she must continue until
svc_thread_should_stopreturns true π - if you pass a non-zero error, uh. the call will not return. π like literally never comes back β the thread will exit. not me writing a function that ghosts you mid-call π
heads up bestie: that non-zero case is not a soft failure, the call genuinely doesn't return. the thread's gone. periodt π
π SEE ALSO π
kernel file ./include/linux/sunrpc/svc.h, and also these absolute icons:
svc_serv_maxpages(9)svc_thread_should_stop(9)svc_rqst_page_release(9)svcxdr_init_decode(9)svcxdr_init_encode(9)svcxdr_encode_opaque_pages(9)svcxdr_set_auth_slack(9)svcxdr_set_accept_stat(9)
and that's the page, bestie π§ she lives in ./include/linux/sunrpc, and this particular glow-up was dated October 2026 β mwah, go forth and init responsibly ππ
π¦ 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