STRUCT DWC3_REQUEST(9)
π struct dwc3_request(9) β Kernel API Manual π
πΈ NAME πΈ
struct dwc3_request β bestie, this is literally the representation of a transfer request. Thatβs the whole vibe. π
β¨ SYNOPSIS β¨
okay so hereβs the struct in all its glory, no cap:
struct dwc3_request {
struct usb_request request;
struct list_head list;
struct dwc3_ep *dep;
struct scatterlist *start_sg;
unsigned int num_pending_sgs;
unsigned int remaining;
unsigned int status;
#define DWC3_REQUEST_STATUS_QUEUED 0;
#define DWC3_REQUEST_STATUS_STARTED 1;
#define DWC3_REQUEST_STATUS_DISCONNECTED 2;
#define DWC3_REQUEST_STATUS_DEQUEUED 3;
#define DWC3_REQUEST_STATUS_STALLED 4;
#define DWC3_REQUEST_STATUS_COMPLETED 5;
#define DWC3_REQUEST_STATUS_UNKNOWN -1;
u8 epnum;
struct dwc3_trb *trb;
dma_addr_t trb_dma;
unsigned int num_trbs;
unsigned int direction:1;
unsigned int mapped:1;
};
π Members π
every field has a job, and none of them are doing too much:
requestβ thestruct usb_requestthatβs actually getting transferred π«Άlistβ alist_headused for request queueingdepβ thestruct dwc3_epthat owns this requeststart_sgβ pointer to the sg which should be queued nextnum_pending_sgsβ counter to pending sgsremainingβ amount of data remainingstatusβ internal dwc3 request status tracking; theDWC3_REQUEST_STATUS_*defines up in the synopsis are its whole personalityepnumβ endpoint number to which this request referstrbβ pointer tostruct dwc3_trbtrb_dmaβ DMA address oftrbnum_trbsβ number of TRBs used by this requestdirectionβ IN or OUT direction flagmappedβ true when the request has been dma-mapped
π¦ SEE ALSO π¦
go read these next, bestie β same kernel-file energy:
- Kernel file
./drivers/usb/dwc3/core.h struct dwc3_event_buffer(9)struct dwc3_ep(9)struct dwc3_trb(9)struct dwc3_hwparams(9)struct dwc3_glue_ops(9)struct dwc3(9)struct dwc3_event_depevt(9)struct dwc3_event_devt(9)struct dwc3_event_gevt(9)union dwc3_event(9)struct dwc3_gadget_ep_cmd_params(9)dwc3_mdwidth(9)
okay bye bestie π«Ά β this page came from ./drivers/usb/dwc3, dated October 2026, and itβs struct dwc3_request(9). periodt. π
π¦ 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