SSH_MSGOFFSET_COMMAND(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… SSH_MSGOFFSET_COMMAND(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual, page literally called SSH_MSGOFFSET_COMMAND(9). yes the whole page is named after a macro. she's that girl. πŸŽ€


✨ NAME ✨

SSH_MSGOFFSET_COMMAND β€” computes the offset in an SSH message to a specified field in the command. like, where in the byte soup does this field actually live? that's the whole gig. πŸ¦‹


🌸 SYNOPSIS 🌸

SSH_MSGOFFSET_COMMAND (field );

no cap, that's it. one argument. she's low maintenance. πŸ’…


🫢 ARGUMENTS 🫢

  • field β€” the field you want the offset of. the one thing you gotta tell her, and she'll do the math. no notes. ✨

πŸ’– RETURN πŸ’–

returns the offset of the specified struct ssh_command field in the raw SSH message data. and she's not just vibing β€” she actually takes stuff into account:

  • the SYN bytes (u16) that sit before the frame, and
  • the frame CRC (u16) that sits between the frame and the command.

so those two little u16s are accounted for, fr fr. main character attention to detail. πŸ‘‘πŸ”₯


🌈 SEE ALSO 🌈

the whole friend group πŸ’œ β€” from the kernel file ./include/linux/surface_aggregator/serial_hub.h:

that's the whole roster. iykyk. πŸ’€πŸŒΈ


🧚 friendly reminder: this is a macro, so field needs to be something she can take the offset of β€” that's just how offsetof-style vibes work, bestie. go off. 🫢

so anyway, this page came out of ./include/linux/surface_aggreg... and it's dated October 2026 (yes, future queen behavior ⭐) β€” signed off with love by SSH_MSGOFFSET_COMMAND(9), xoxo. πŸŽ€πŸ’–

πŸ“¦ where this page comes from