to_ssh_request(9)
π to_ssh_request(9) β like, the Kernel API Manual but make it cute
okay so bestie, welcome to to_ssh_request(9) β a page from the Kernel API Manual, and honestly? she's short, she's sweet, she does exactly one (1) thing. let's get into it β¨
πΈ NAME πΈ
to_ssh_request β cast a SSH packet to its enclosing SSH request. that's it. that's the whole job. iconique.
β¨ SYNOPSIS β¨
struct ssh_request * to_ssh_request (struct ssh_packet *p );
yes, that's the whole signature. no cap. π«Ά
π ARGUMENTS π
pβ the packet to cast. like, the packet you want to see as its bigger, request-shaped self. π
π¦ DESCRIPTION π¦
so what does she actually do? she casts the given struct ssh_packet to its enclosing struct ssh_request. the way that works is literally just... casting. that's the vibe.
β οΈ okay this part is important, bestie: the caller is responsible for making sure that the packet is actually wrapped in a struct ssh_request. the function does not check for you. it's not doing a vibe check on your packet. if you lie to her, that's on you β fr fr. π
π₯ RETURN π₯
returns the struct ssh_request wrapping the provided packet. slay. π
π SEE ALSO π
okay this list is long, but every single one of these is a real one, so here we go β the whole friend group:
- 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)ssh_request_get(9)ssh_request_put(9)ssh_request_set_data(9)
like, go read them, they're all right there and they're all lowkey obsessed with you understanding the SSH/SSAM stack π§
π okay that's the page!! she lives in the Kernel API Manual, the source is that file path over there in ./include/linux/surface_aggreg... (yes it got truncated in the footer, that's just how the header renders, don't come for me π), and the date on this one is October 2026. mwah, go cast some packets responsibly ππ
π¦ 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