SSH_COMMAND_MESSAGE_LENGTH(9)
π SSH_COMMAND_MESSAGE_LENGTH(9) π
okay bestie, so this one lives in the Kernel API Manual and it's literally called SSH_COMMAND_MESSAGE_LENGTH β yes the whole entire thing is the name, no shortcuts, no nicknames, we respect the full government name here π
β¨ NAME β¨
SSH_COMMAND_MESSAGE_LENGTH β compute length of SSH command message. that's it. that's the whole job. lowkey iconic for being that straightforward π¦
πΈ SYNOPSIS πΈ
SSH_COMMAND_MESSAGE_LENGTH (payload_size );
like, you hand it a payload_size and it does its little thing, periodt β¨
π§ ARGUMENTS π§
payload_sizeβ the length of the command payload. that's the number you're feeding in. that's the whole argument, she's a simple queen π
π RETURN π
returns the length of a SSH command message that has a command payload of the specified size π«Ά so basically: you tell it how big the payload is, it tells you how big the whole message is gonna be. mathematically slaying, no cap π
ngl this is a pure "you get back what you asked about" situation β no side effects described, just a length. keep it that way π₯
π₯ SEE ALSO π₯
okay gathering the whole friend group here, brace yourself, this list is LONG and we're reading all of it, nobody gets left out π
it all starts at Kernel file ./include/linux/surface_aggregator/serial_hub.h, and then:
enum ssh_frame_type(9)struct ssh_frame(9)enum ssh_payload_type(9)struct ssh_command(9)SSH_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)
like I said. whole squad. iykyk πβ
and that's the page, bestie β sourced from ./include/linux/surface_aggreg..., dated October 2026, filed under SSH_COMMAND_MESSAGE_LENGTH(9) forever and always. go forth and compute those lengths π
β¨π
π¦ 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