ssh_packet_set_data(9)
π ssh_packet_set_data(9) β Kernel API Manual π
okay bestie, this is the Kernel API Manual page for ssh_packet_set_data(9), and itβs honestly pretty iconic for such a tiny function π
β¨ NAME β¨
ssh_packet_set_data β set raw message data of packet.
πΈ SYNOPSIS πΈ
void ssh_packet_set_data (struct ssh_packet *p , u8 *ptr , size_t len );
π ARGUMENTS π
pβ the packet for which the message data should be set.ptrβ pointer to the memory holding the message data.lenβ length of the message data.
π DESCRIPTION π
okay so this function sets the raw message data buffer of the packet to the memory you provide. The memory is not copied β nope, not even a little. Instead, the caller is responsible for management of that memory (i.e. allocation and deallocation), bestie. You have to make sure the provided memory is valid and contains a valid SSH message, starting from the time of submission of the packet until the release callback has been called. During that whole window, the memory may not be altered in any way. no cap. π
π¦ SEE ALSO π¦
the kernel file is ./include/linux/surface_aggregator/serial_hub.h β and hereβs the whole friend group, iykyk:
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)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)
mwah π source/version: ./include/linux/surface_aggreg... Β· date: October 2026. thatβs the whole page, bestie, slay π«Ά
π¦ 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