STRUCT USBIP_HEADER(9)
π 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, andret_unlinkall get their moment depending on the packet. π
π SEE ALSO π
- Kernel file
./drivers/usb/usbip/usbip_common.hstructusbip_header_basic(9),struct usbip_header_cmd_submit(9),struct usbip_header_ret_submit(9),struct usbip_header_cmd_unlink(9), andstruct 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
- 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