dwc2_host_put_tt_info(9)
π dwc2_host_put_tt_info(9) β like, the Kernel API Manual page you didn't know you needed π
okay so bestie, welcome to the Kernel API Manual β¨ we're talking about dwc2_host_put_tt_info today and honestly? she's a little cleanup icon and we stan a low-drama function.
πΈ NAME πΈ
dwc2_host_put_tt_info β bestie, this is the one that puts the dwc2_tt that you got from dwc2_host_get_tt_info(). that's it. that's the job. returning the thing you borrowed. very "give it back when you're done" of her π«Ά
β¨ SYNOPSIS β¨
void dwc2_host_put_tt_info (struct dwc2_hsotg *hsotg , struct dwc2_tt
*dwc_tt );
literally just two args, no return value, void as the day is long π
π¦ ARGUMENTS π¦
hsotgβ the HCD state structure for the DWC OTG controller. the whole vibe of the controller lives in here, slay πdwc_ttβ the pointer thatdwc2_host_get_tt_infohanded you earlier. yes, that pointer. bring it back π
π§ DESCRIPTION π§
so here's the tea π: this frees the resources that dwc2_host_get_tt_info allocated β but only if all the current holders of the structure are done with it. like, she's not gonna yank the rug out from under your other besties who are still using it. she does a vibe check first, and if everyone's finished, then the free happens. no cap π
and the iconic part? it's OK to call this with NULL. literally no notes. call her with nothing, she's unbothered, she's thriving, she simply returns π
lowkey this is the friendliest cleanup function in the whole file and i will not be taking questions π
π₯ SEE ALSO π₯
kernel file ./drivers/usb/dwc2/hcd.c β and honestly the whole squad is here, so let's give them their moment, they've earned it:
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_get_tt_info(9)β the one that started it all, the getter to this putter π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)
π reminder bestie:dwc_ttis a pointer, so no funny business, andhsotgis the HCD state struct β you already knew that, i'm just being thorough π«Ά
okay that's the page!! mwah π this has been ./drivers/usb/dwc2, dated October 2026, and yes you read that date right β she's from the future and she's still cleaning up after everybody πβ¨ go forth and put responsibly, bestie ππ
π¦ 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