ssh_request_get(9)
π 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:
- enum
ssh_frame_type(9) - struct
ssh_frame(9) - enum
ssh_payload_type(9) - struct
ssh_command(9) SSH_MESSAGE_LENGTH(9)SSH_COMMAND_MESSAGE_LENGTH(9)SSH_MSGOFFSET_FRAME(9)SSH_MSGOFFSET_COMMAND(9)ssh_crc(9)ssh_rqid_next_valid(9)ssh_rqid_to_event(9)ssh_rqid_is_event(9)ssh_tc_to_rqid(9)ssh_tid_to_index(9)ssh_tid_is_valid(9)- struct
ssam_span(9) - enum
ssam_ssh_tid(9) - enum
ssh_packet_base_priority(9) SSH_PACKET_PRIORITY(9)ssh_packet_priority_get_try(9)ssh_packet_priority_get_base(9)- struct
ssh_packet_ops(9) - struct
ssh_packet(9) ssh_packet_set_data(9)- struct
ssh_request_ops(9) - struct
ssh_request(9) to_ssh_request(9)ssh_request_put(9)ssh_request_set_data(9)
ngl the source path got cut off in the original footer as./include/linux/surface_aggreg..., but the date isOctober 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
- 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