handshake_req_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ”₯


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