nfsd_set_nrthreads(9)
π nfsd_set_nrthreads π
okay so bestie, welcome to the kernel-side glow-up manual for nfsd_set_nrthreads β it's a 9-section Kernel API Manual page, and honestly? she's iconic. she's literally the function that sets the number of running threads in the net's service. no cap. π§΅β¨
β¨ SYNOPSIS β¨
int nfsd_set_nrthreads (int n , int *nthreads , struct net *net );
that's the whole vibe right there. three args, one int coming back at you. obsessed. π«Ά
π ARGUMENTS π
nβ the number of array members innthreads. basically: how many entries are you actually handing me, bestie? πnthreadsβ an array of thread counts, one for each pool. yes, each pool. she's plural. πnetβ the network namespace to operate within. this is the neighborhood she's working in. ποΈ
πΈ DESCRIPTION πΈ
so what does she do? this function alters the number of running threads for the given network namespace β in each pool. all of them. every single one. main character energy across the board. π
now the messy part, and listen up because this is giving "read the fine print" energy:
- if you pass an array longer than the number of pools, the extra pool settings are ignored. like, they're just standing there, not invited to the party. π
- if you pass an array shorter than the number of pools, the missing values are interpreted as
0's. no value? no threads. simple as that. π
and then the return value, because of course: returns0on success or a negativeerrnoon error.0= slay. negativeerrno= something went sideways and she's telling you in errno-speak. π
π¦ SEE ALSO π¦
these are her friends, her mutuals, her group chat β and the kernel file they all live in:
- Kernel file
./fs/nfsd/nfssvc.c nfsd_nrthreads(9)nfsd_copy_write_verifier(9)nfsd_reset_write_verifier(9)nfsd_destroy_serv(9)nfsd_svc(9)nfsd_dispatch(9)nfssvc_decode_voidarg(9)nfssvc_encode_voidres(9)
go read them. iykyk. ππ
and that's the page, bestie!! π this one ships out of ./fs/nfsd, dated October 2026, and it's the nfsd_set_nrthreads(9) page in the Kernel API Manual β thanks for reading, mwah, bye!! πβπ
π¦ 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