STRUCT PD_MESSAGE(9)
π struct pd_message(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, we're fancy now β and today's main character is struct pd_message, aka a PD message exactly as it shows up on the wire β¨. Like, this is the glow-up form, the one the hardware actually sees, no cap π«Ά.
πΈ SYNOPSIS πΈ
struct pd_message {
__le16 header;
union {
__le32 payload[PD_MAX_PAYLOAD];
struct pd_chunked_ext_message_data ext_msg;
};
};
look at her. she's so simple. she's so iconic. π
π Members π
headerβ the PD message header π«. yeah that's it, that's the whole vibe.{unnamed_union}β it's anonymous π«₯. no name, no problem, she doesn't need one to slay.payloadβ the PD message payload π, laid out as__le32 payload[PD_MAX_PAYLOAD]inside that anonymous union.ext_msgβ the PD message chunked extended message data π, hanging out in the same anonymous union aspayload, sharing the space like good roommates.
lowkey the union thing is the whole point βpayloadandext_msgare the same bytes, bestie. pick your interpretation, don't pick both π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/usb/pd.hstruct pd_chunked_ext_message_data(9)struct sink_caps_ext_msg(9)BSDO(9)
go read those next, fr fr, they're all connected iykyk π₯
and that's the whole page, periodt π. this came to you from ./include/linux/usb, dated October 2026, footer supremacy π β signed off with the same struct pd_message(9) energy we started with π§ββοΈβ¨
π¦ 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