svc_tcp_handshake_done(9)
π svc_tcp_handshake_done(9) β from the Kernel API Manual, bestie β¨
okay so picture this: it's the kernel API manual, section 9, and the star of the show is svc_tcp_handshake_done β say it with me, we're learning today π
πΈ NAME πΈ
svc_tcp_handshake_done β the handshake completion handler π like it literally handles what happens when the handshake is done, no cap
β¨ SYNOPSIS β¨
void svc_tcp_handshake_done (void *data , int status , key_serial_t
peerid );
that's it, that's the whole vibe check β void return, three args, she's serving function signature realness π
π¦ ARGUMENTS π¦
dataβ the address of the xprt to wake π lowkey it's just here to get woken up, let her sleepstatusβ the status of the handshake π«Ά how'd it go? this tea right herepeeridβ the serial number of the key containing the remote peer's identity π iykyk, it's giving very main character identity energy
π DESCRIPTION π
okay so here's the situation, bestie π if a security policy is specified as an export option, we don't have a specific export here to check. like, none. zero. it's not in the building π
so instead?? we set a "TLS session is present" flag on the xprt β literally just flag it and move on β and then we let an upper layer enforce the local security policy π delegation!! we love to see it. she's not doing the security check herself, she's letting the upper layer be the main character π
ngl the whole point is: no specific export to check β set the flag β upper layer handles enforcement. periodt. π₯
π SEE ALSO π
so the kernel file is ./net/sunrpc/svcsock.c and honestly there's a whole friend group here, go say hi π«Ά
svc_tcp_release_ctxt(9)svc_udp_release_ctxt(9)svc_tcp_handshake(9)svc_udp_recvfrom(9)svc_udp_sendto(9)svc_tcp_recvfrom(9)svc_tcp_sendto(9)svc_addsock(9)
like that's the whole group chat, every single one of them, we didn't skip a single bestie π
and that's the page!! brought to you by ./net/sunrpc, dated October 2026, living in section 9 of the Kernel API Manual β svc_tcp_handshake_done(9) fr fr β slay, go read the source, 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