STRUCT USB_OS_DESC_EXT_PROP(9)
β¨ 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 au8, 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 inconfigfs, 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
- 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