dwc2_host_get_tt_info(9)
π dwc2_host_get_tt_info(9) β like, the Kernel API Manual, bestie β¨
okay so real quick β this page lives in the Kernel API Manual (that's the manual name, iykyk), and it's all about dwc2_host_get_tt_info. Let's get into it π«Ά
πΈ NAME πΈ
dwc2_host_get_tt_info β grab the dwc2_tt that's associated with a context β¨
π SYNOPSIS π
struct dwc2_tt * dwc2_host_get_tt_info (struct dwc2_hsotg *hsotg , void
*context , gfp_t mem_flags , int *ttport );
like, that's the whole signature, no cap π
π¦ ARGUMENTS π¦
hsotgβ the HCD state structure for the DWC OTG controller. your main character struct fr π«Άcontextβ the priv pointer from astruct dwc2_hcd_urb. yes bestie, that one.mem_flagsβ flags for allocating memory. the alloc vibes β¨ttportβ we'll return this device's port number right here. that's used to reference into the bitmap if we're on amulti_tthub π
π DESCRIPTION π
so what this does is it gets the dwc2_tt structure (plus the ttport) that's associated with the given context β and the context is really just a struct urb pointer, lowkey π«Ά
the first time this gets called for a given TT, we allocate memory for our structure. and then when everyone is done and has called dwc2_host_put_tt_info, the refcount for the structure goes to 0 and we free it. iconic cleanup behavior tbh π
β RETURN β
returns a pointer to a struct dwc2_tt β¨
π¨ do NOT forget to call dwc2_host_put_tt_info! like actually, bestie, don't leave it hanging π
returns NULL upon memory alloc failure π
π SEE ALSO π
kernel file ./drivers/usb/dwc2/hcd.c, plus this whole squad of friends π«Ά:
dwc2_enable_common_interrupts(9)dwc2_enable_host_interrupts(9)dwc2_disable_host_interrupts(9)dwc2_calc_frame_interval(9)dwc2_read_packet(9)dwc2_dump_channel_info(9)dwc2_hc_init(9)dwc2_hc_halt(9)dwc2_hc_cleanup(9)dwc2_hc_set_even_odd_frame(9)dwc2_hc_write_packet(9)dwc2_hc_do_ping(9)dwc2_hc_start_transfer(9)dwc2_hc_start_transfer_ddma(9)dwc2_hc_continue_transfer(9)dwc2_hcd_start(9)dwc2_hcd_connect(9)dwc2_hcd_disconnect(9)dwc2_hcd_rem_wakeup(9)dwc2_hcd_stop(9)dwc2_core_init(9)dwc2_core_host_init(9)dwc2_assign_and_init_hc(9)dwc2_hcd_select_transactions(9)dwc2_queue_transaction(9)dwc2_hcd_queue_transactions(9)dwc2_port_suspend(9)dwc2_port_resume(9)dwc2_host_put_tt_info(9)dwc2_backup_host_registers(9)dwc2_restore_host_registers(9)dwc2_host_enter_hibernation(9)dwc2_host_enter_partial_power_down(9)dwc2_host_enter_clock_gating(9)dwc2_host_exit_clock_gating(9)
π§ and that's the whole page, bestie! it's from./drivers/usb/dwc2, dated October 2026, and yes it's literally titleddwc2_host_get_tt_info(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