STRUCT USB_OS_DESC(9)
π struct usb_os_desc(9) β the Kernel API Manual glow-up β¨
okay so bestie, welcome to the Kernel API Manual page for struct usb_os_desc. this lil cutie is the struct that describes OS descriptors associated with one interface β one interface, one struct, that's the whole vibe π
πΈ NAME πΈ
struct usb_os_desc β literally describes OS descriptors associated with one interface. that's it, that's the girl π
β¨ SYNOPSIS β¨
here's the whole fit, no cap, copy it exactly:
struct usb_os_desc {
char *ext_compat_id;
struct list_head ext_prop;
int ext_prop_len;
int ext_prop_count;
struct mutex *opts_mutex;
struct config_group group;
struct module *owner;
};
look at her. iconic. every field is doing its own thing and honestly? main character energy all around π¦
π Members π
let's meet the cast, one by one, because they all ate:
ext_compat_idβ 16 bytes of "Compatible ID" and "Subcompatible ID". yes, exactly 16 bytes, she's very specific about her measurements πext_propβ the Extended Properties list. a wholestruct list_head, keeping her extended-property besties linked together π«Άext_prop_lenβ Total length of Extended Properties blobs. all the blobs, counted up πext_prop_countβ Number of Extended Properties. the headcount, no cap π’opts_mutexβ an Optional mutex protecting config data of ausb_function_instance. note the "optional" bestie β she's not always on duty πgroupβ astruct config_groupthat Represents OS descriptors associated with an interface in configfs. this is where the configfs girlies hang out β¨ownerβ the Module associated with this OS descriptor. she's got a sponsor, periodt π
π₯ SEE ALSO π₯
go read these next, i'm obsessed, iykyk:
- Kernel file
./include/linux/usb/composite.h struct usb_os_desc_ext_prop(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)
π real talk: those(9)numbers mean they're all manpage sections, soman 9 struct usb_functionif you're curious. stealing that tip from... the page itself, basically. okay byeee π
and that's the whole page, bestie π this came from the Kernel API Manual, source ./include/linux/usb, dated October 2026, and the struct is struct usb_os_desc(9) β go forth and slay your descriptors π§ββοΈπΈ
π¦ 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