STRUCT USB_OS_DESC_EXT_PROP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct usb_os_desc_ext_prop β€” describes one "Extended Property" πŸ’… ok so this is from the Kernel API Manual, section 9, and it's literally the little struct that holds a single Extended Property. Bestie, it's giving very specific, very important, very niche. Obsessed.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct usb_os_desc_ext_prop {
    struct list_head        entry;
    u8 type;
    int name_len;
    char *name;
    int data_len;
    char *data;
    struct config_item      item;
 };

That's the whole vibe right there β€” seven members, no cap, nothing extra. πŸŽ€


🌸 MEMBERS 🌸

Ok so let's go through them one by one, because every single one matters and I refuse to skip a single field:

  • entry β€” this is what keeps a list of extended properties. Like, it's the little link that holds the whole friend group together. 🫢
  • type β€” the Extended Property type. It's a u8, so it's a lil guy, but it's the one that says what kind of property this is. Main character energy fr fr. πŸ‘‘
  • name_len β€” the Extended Property unicode name length, including the terminating ' '. Yes, that's what it says, don't come for me β€” the length includes that terminating character. 😭
  • name β€” the Extended Property name. The actual name. The government name, if you will. 🌸
  • data_len β€” the Length of the Extended Property blob (for unicode store double len). Read that twice, it's important β€” for unicode, store double len. πŸ”₯
  • data β€” the Extended Property blob itself. The payload. The substance. The content. ✨
  • item β€” Represents this Extended Property in configfs. So it's how this whole thing shows up in configfs, slay. πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/usb/composite.h, plus the whole squad:

  • struct usb_os_desc(9)
  • struct usb_os_desc_table(9)
  • struct usb_function(9)
  • struct usb_configuration(9)
  • struct usb_composite_driver(9)
  • module_usb_composite_driver(9)
  • struct usb_composite_dev(9)

Go read them, iykyk. 🌈


Okay that's the whole page, bestie β€” every member, every reference, nothing dropped. 🧚

Sign-off time: this lil beauty lives under ./include/linux/usb, and it's dated October 2026 ⭐ β€” so like, future-dated and still iconic. struct usb_os_desc_ext_prop(9) out. πŸ’– πŸŽ€ πŸ¦‹

πŸ“¦ where this page comes from