ssh_packet_set_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


mwah πŸ’‹ source/version: ./include/linux/surface_aggreg... Β· date: October 2026. that’s the whole page, bestie, slay 🫢

πŸ“¦ where this page comes from