STRUCT USBIP_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, meet struct usbip_header(9) from the Kernel API Manual β€” it's literally the one shared header that every usbip packet rocks. common header energy, no cap πŸ‘‘βœ¨


✨ SYNOPSIS ✨

Here's the whole glow-up, exactly as it appears:

       struct usbip_header {
           struct usbip_header_basic base;
           union {
             struct usbip_header_cmd_submit  cmd_submit;
             struct usbip_header_ret_submit  ret_submit;
             struct usbip_header_cmd_unlink  cmd_unlink;
             struct usbip_header_ret_unlink  ret_unlink;
           } u;
        };

The way this struct is nested is giving main character with a union sidekick 🫢


πŸŽ€ Members πŸŽ€

  • base β€” the basic header. It's the foundation, the basic-info bestie of the whole thing.
  • u β€” the packet type dependent header. This union is where the packet-type-specific glow lives: cmd_submit, ret_submit, cmd_unlink, and ret_unlink all get their moment depending on the packet. πŸ’…

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/usb/usbip/usbip_common.h struct usbip_header_basic(9), struct usbip_header_cmd_submit(9), struct usbip_header_ret_submit(9), struct usbip_header_cmd_unlink(9), and struct usbip_header_ret_unlink(9).

go read those next, iykyk πŸ¦‹πŸŒΈ


Signed with sparkles by the ./drivers/usb/usbip source tree, October 2026 edition, starring struct usbip_header(9). Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from