svc_new_thread(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svc_new_thread(9) β€” the kernel API manual, bestie edition 🧚

okay so you found the svc_new_thread(9) page, welcome, pull up a chair πŸ’– this is the whole thing, nothing skipped, i promise.


✨ NAME ✨

svc_new_thread β€” spawn a new thread in the given pool 🫢


🌸 SYNOPSIS 🌸

int svc_new_thread (struct svc_serv *serv , struct svc_pool *pool );

πŸŽ€ ARGUMENTS πŸŽ€

  • serv β€” the serv to which the pool belongs πŸ‘‘ like, the whole operation.
  • pool β€” pool in which thread should be spawned πŸ¦‹ the specific lil home for your new thread.

πŸ’œ DESCRIPTION πŸ’œ

So the vibe is: create a new thread inside pool, which is a part of serv. That's it, that's the whole errand. ✨

⚠️ real talk though β€” the caller must hold the service mutex. not optional, not "i'll grab it later", not "my friend is holding it". hold it. πŸ”’

Returns 0 on success, or -errno on failure. so like, zero means slay, negative means something went sideways and you get an errno about it 😭


🌈 SEE ALSO 🌈

Kernel file ./net/sunrpc/svc.c πŸ‘€ and honestly the whole friend group:


okay that's the whole page, no cap, every single flag and reference accounted for πŸ’… go forth and spawn responsibly. mwah 🫢

this icon of a manpage lives in ./net/sunrpc and is stamped October 2026 β€” periodt, that's the sign-off bestie 🌟

πŸ“¦ where this page comes from