handshake_req_next(9)
πΈ NAME πΈ
okay bestie, welcome to the handshake_req_next(9) page from the Kernel API Manual π β this one is literally about returning the next queued handshake request β¨
handshake_req_next β return the next queued handshake request π
β¨ SYNOPSIS β¨
struct handshake_req * handshake_req_next (struct handshake_net *hn ,
int class );
π ARGUMENTS π
hnβ the per-net handshake state, no cap πclassβ the handler class to match π¦
π DESCRIPTION π
okay so hereβs the part you actually need to lock in, bestie: on a non-NULL return, the caller owns an extra reference on req->hr_file π. FD_PREPARE consumes that reference on success β¨. but on the FD_PREPARE failure path, the caller must fput it π β like, do not leave that reference hanging, fr fr.
π¦ RETURN π¦
a pointer to a removed handshake_req, or NULL π
π₯ SEE ALSO π₯
- kernel file:
./net/handshake/request.cπ§ handshake_req_alloc(9)βhandshake_req_private(9)πhandshake_req_submit(9)πhandshake_req_cancel(9)π
okay thatβs the whole page, bestie π«Ά β source/version ./net/handshake, dated October 2026, handshake_req_next(9) signing off πβ¨
π¦ 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