dwc3_prepare_last_sg(9)
π dwc3_prepare_last_sg(9) π
okay so bestie, this is a page straight outta the Kernel API Manual, and it's all about dwc3_prepare_last_sg β the little function that gets your TRBs ready for the last SG entry. no cap. π
β¨ NAME β¨
dwc3_prepare_last_sg β prepare TRBs for the last SG entry π¦
β¨ SYNOPSIS β¨
int dwc3_prepare_last_sg (struct dwc3_ep *dep , struct dwc3_request *req
, unsigned int entry_length , unsigned int node );
like, that's the whole signature, verbatim, no notes. π
β¨ ARGUMENTS β¨
depβ the endpoint that the request belongs to, iykyk πreqβ the request we're preparing, main character energy frentry_lengthβ the last SG entry size, literally just the size bestie πnodeβ indicates whether this is not the first entry (for isoc only). that's the whole vibe check on this one π§
β¨ DESCRIPTION β¨
it returns the number of TRBs prepared. that's it, that's the description, slay. β
β¨ SEE ALSO β¨
so the kernel file is ./drivers/usb/dwc3/gadget.c and honestly it's giving family reunion β here's the whole guest list, every single one: π
dwc3_gadget_set_test_mode(9)dwc3_gadget_get_link_state(9)dwc3_gadget_set_link_state(9)dwc3_ep_inc_trb(9)dwc3_ep_inc_enq(9)dwc3_ep_inc_deq(9)dwc3_gadget_giveback(9)dwc3_send_gadget_generic_command(9)dwc3_send_gadget_ep_cmd(9)dwc3_gadget_start_config(9)dwc3_gadget_calc_tx_fifo_size(9)dwc3_gadget_calc_ram_depth(9)dwc3_gadget_clear_tx_fifos(9)__dwc3_gadget_ep_enable(9)__dwc3_gadget_ep_disable(9)dwc3_ep_prev_trb(9)dwc3_prepare_one_trb(9)__dwc3_stop_active_transfer(9)dwc3_gadget_start_isoc_quirk(9)dwc3_gadget_setup_nump(9)dwc3_gadget_check_config(9)dwc3_gadget_init(9)
and that's the whole page bestie, no crumbs left π β brought to you by the ./drivers/usb/dwc3 girlies, dated October 2026, under the dwc3_prepare_last_sg(9) era. 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