ssh_request_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ssh_request_get(9) β€” like, the Kernel API Manual, bestie πŸŽ€

okay so we're deep in the kernel API manual today and the star of the show is ssh_request_get(9). yes it's a refcount function. yes it's short. no we are NOT skipping it, because refcounts are literally the main character of kernel stability 🌈✨


✨ NAME ✨

ssh_request_get β€” increment the reference count of a request, that's it, that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

struct ssh_request * ssh_request_get (struct ssh_request *r );

like, you hand it a request, it hands the same request right back. iconic behavior honestly πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • r β€” the request whose reference count you're bumping up. this is the one you're claiming, bestie, guard it with your life πŸ”₯

πŸ’– DESCRIPTION πŸ’–

so what actually happens: it increments the reference count of the request you passed in by incrementing the reference count of the underlying struct ssh_packet that's enclosed inside it. that's the whole mechanic β€” the request's count rides on the packet's count. no cap 🧚

also go look at ssh_request_put and ssh_packet_get while you're here, they're the besties of this function fr fr.


⭐ RETURN ⭐

returns the request you gave it as input. same pointer, same request, zero surprises. slay πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

the whole squad, in kernel file ./include/linux/surface_aggregator/serial_hub.h:


ngl the source path got cut off in the original footer as ./include/linux/surface_aggreg..., but the date is October 2026 β€” so like, future vibes only 🌸

and that's the page!! mwah πŸ’‹ sourced from ./include/linux/surface_aggreg..., dated October 2026, page ssh_request_get(9) β€” go forth and increment responsibly, bestie πŸŽ€πŸ’–

πŸ“¦ where this page comes from