tls_handshake_cancel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hiii bestie!! welcome to tls_handshake_cancel(9) from the Kernel API Manual πŸ’– this one is short and iconic, so let’s get into it.

✨ NAME ✨

  • tls_handshake_cancel β€” cancel a pending handshake πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

bool tls_handshake_cancel (struct sock *sk );

🫢 ARGUMENTS 🫢

  • sk β€” socket on which there is an ongoing handshake πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

okay so the vibe is: request cancellation races with request completion 😭 like, both things can be happening, and you need to know who won. To determine who won, callers examine the return value from this function. periodt.

Return values, bestie:

  • true β€” Uncompleted handshake request was canceled ✨
  • false β€” Handshake request already completed or not found πŸ’€

🌈 CONTEXT 🌈

May be called from process or softirq context. no cap 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./net/handshake/tlshd.c is the home base, and these linked besties are right here:


mwah πŸ’‹ that’s the whole page. source/version: ./net/handshake, date: October 2026 β€” catch u later, bestie! πŸ’–πŸ¦‹

πŸ“¦ where this page comes from