STRUCT CDNS2_REQUEST(9)
π struct cdns2_request(9) β Kernel API Manual, bestie edition π
Okay so this is the page for struct cdns2_request from the Kernel API Manual, and it is literally the extended device-side glow-up of a usb_request object. No cap. Let's get into it β¨
πΈ NAME πΈ
struct cdns2_request β the extended device side representation of the usb_request object. It's giving "main character with extra lore," iykyk π
β¨ SYNOPSIS β¨
struct cdns2_request {
struct usb_request request;
struct cdns2_endpoint *pep;
struct cdns2_trb *trb;
int start_trb;
int end_trb;
struct list_head list;
int finished_trb;
int num_of_trb;
};
Copy it exactly like that, bestie, don't freestyle the syntax π
π¦ Members π¦
Here's the whole cast, member by member β every single one, we are not skipping anybody π
requestβ the genericusb_requestobject that describes a single I/O request. The blueprint, the moment πpepβ the extended representation of theusb_epobject. Glow-up era β¨trbβ the first TRB association with this request. First in line, main character energy π«Άstart_trbβ the number of the first TRB in the transfer ring. Where the journey begins πΈend_trbβ the number of the last TRB in the transfer ring. Where it wraps up, bye bestie πlistβ used for queuing the request in lists. It's the group chat, basically πfinished_trbβ the number of trb has already finished per request. The ones that ate and left no crumbs π₯num_of_trbβ how many trbs are associated with the request. The whole headcount, fr fr π
π SEE ALSO π
All the other icons in this little kernel family β go say hi, they're all in the Kernel file ./drivers/usb/gadget/udc/cdns2/cdns2-gadget.h π:
struct cdns2_ep0_regs(9)struct cdns2_epx_base(9)struct cdns2_epx_regs(9)struct cdns2_interrupt_regs(9)struct cdns2_usb_regs(9)struct cdns2_adma_regs(9)struct cdns2_trb(9)struct cdns2_ring(9)struct cdns2_endpoint(9)struct cdns2_device(9)
Lowkey a whole squad. Read the whole squad. Do it for the plot π§
That's the page, bestie β served fresh from ./drivers/usb/gadget/udc/cdns2, dated October 2026, and yes it's still titled struct cdns2_request(9) because some things never change π slay β¨
π¦ 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