tls_server_hello_psk(9)
πΈ tls_server_hello_psk β NAME vibes πΈ
okay so this is tls_server_hello_psk from the Kernel API Manual, and it's literally just here to request a server TLS handshake on a socket. that's the whole assignment bestie π
β¨ SYNOPSIS β¨
int tls_server_hello_psk (const struct tls_handshake_args *args , gfp_t flags );
like, that's the signature. copy it exactly, don't @ me π«Ά
π ARGUMENTS π
argsβ the socket and handshake parameters for this request. everything you need to describe what you're asking for lives in here π¦flagsβ memory allocation control flags. you know the drill, this is thegfp_tsituation controlling how memory gets grabbed β¨
π DESCRIPTION π
so like, the return values are the whole story here, and they're giving very much "read the fine print" energy π here's the vibe check:
0β handshake request enqueue. that's a slay β and->donewill be called when it's complete, so don't ghost it π-ESRCHβ no user agent is available π nobody's home, no cap-ENOMEMβ memory allocation failed. the allocation said "not today" π
fr fr, memorize those three β they're the entire personality of this function's return path π
π SEE ALSO π
- Kernel file
./net/handshake/tlshd.c tls_handshake_done(9)tls_handshake_accept(9)tls_client_hello_anon(9)tls_client_hello_x509(9)tls_client_hello_psk(9)tls_server_hello_x509(9)tls_handshake_cancel(9)tls_handshake_close(9)
the whole handshake friend group honestly, go read them all π§π
and that's the page!! mwah π this one lives in ./net/handshake, dated October 2026, and it's filed under tls_server_hello_psk(9) β iconique, periodt β¨π
π¦ 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