STRUCT SSH_COMMAND(9)
π struct ssh_command(9) π
okay so bestie, we're deep in the Kernel API Manual today and the star of the show is struct ssh_command β it's literally the payload of a command-type frame. that's the whole vibe. it's the lil' bundle of bytes that rides inside an SSH frame when the frame is carrying a command. iconic behavior honestly π
β¨ NAME β¨
struct ssh_command β Payload of a command-type frame. yes that's it. that's the name. short, sweet, ate. π
πΈ SYNOPSIS πΈ
struct ssh_command {
u8 type;
u8 tc;
u8 tid;
u8 sid;
u8 iid;
__le16 rqid;
u8 cid;
};
look at it. seven little fields. so demure. so mindful. π¦
π Members π
okay so let's meet the cast, because every single one of these matters and i'm not skipping a single one of them, periodt:
typeβ the type of the payload. peepenum ssh_payload_typefor the full menu. for this struct it should beSSH_PLD_TYPE_CMD. like, that's its whole personality. πtcβ command target category.tidβ Target ID. it's the field that indicates the target of the message. iykyk. π―sidβ Source ID. indicates the source of the message. who sent it, basically. π«Άiidβ Instance ID.rqidβ Request ID. this one's a lil' matchmaker π it's used to match requests with responses and to differentiate between responses and events. lowkey the most socially connected field in here.cidβ Command ID.
π₯ SEE ALSO π₯
the friend group. the whole group chat. no cap, here's every single one:
- Kernel file
./include/linux/surface_aggregator/serial_hub.henum ssh_frame_type(9),struct ssh_frame(9),enum ssh_payload_type(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_get(9),ssh_request_put(9),ssh_request_set_data(9)
reminder bestie:typeshould beSSH_PLD_TYPE_CMDfor this struct β that's straight from the page, not me being dramatic (okay it's a little me being dramatic but it's also true π).
π and that's the whole page, mwah π this one came from ./include/linux/surface_aggreg... and it's dated October 2026 β so yeah, future vibes only. catch you in the next manpage, 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