ssh_request_set_data(9)
π ssh_request_set_data β the one where you point a request at your raw bytes
okay so bestie, welcome to ssh_request_set_data(9), straight out of the Kernel API Manual, section 9 β¨ (yes we're in the kernel-hacker part of the manual, section 9, the fun one π§)
πΈ SYNOPSIS πΈ
void ssh_request_set_data (struct ssh_request *r , u8 *ptr , size_t len
);
it's giving "three arguments, zero return value, maximum chaos" π
like the function literally hands you back nothing (void) and honestly? iconic.
π ARGUMENTS π
rβ the request you're setting the message data on π«Ά this is the main character of the whole operation.ptrβ a pointer to the memory that's holding the message data π like, the actual bytes live over there, this just points at 'em.lenβ the length of that message data. how many bytes are we talking about, bestie? this number. π₯
π¦ DESCRIPTION π¦
so what it does is: it sets the raw message data buffer of the underlying packet to the buffer you specified β¨ super straightforward.
but here's the important part, and I need you to hear me on this one ngl:
it does NOT copy the actual message data. π all it does is set the buffer pointer and the length. that's it. the bytes stay exactly where they are and you better keep them alive, ok?
if you want more details on that, go check out ssh_packet_set_data β that's your girl for the deeper lore π
π SEE ALSO π
the whole friend group π every single one of them, no cap:
- 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)to_ssh_request(9)ssh_request_get(9)ssh_request_put(9)
like I said. the whole group chat. π
β the sign-off β
this little page came from ./include/linux/surface_aggreg... and it's dated October 2026, and the page itself is ssh_request_set_data(9) π
that's the whole thing bestie, go set some data π β¨π«Ά
π¦ 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