ssh_request_set_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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