dwc3_gadget_get_link_state(9)
π dwc3_gadget_get_link_state(9) β from the Kernel API Manual π
okay so bestie, this is the dwc3_gadget_get_link_state(9) page from the Kernel API Manual, and it's literally all about peeking at the current state of the usb link. no cap, it's a tiny page but it's iconic. let's get into it π«Άβ¨
πΈ NAME πΈ
dwc3_gadget_get_link_state β gets current state of usb link π
β¨ SYNOPSIS β¨
int dwc3_gadget_get_link_state (struct dwc3 *dwc );
π ARGUMENTS π
dwcβ pointer to our context structure π§
π¦ DESCRIPTION π¦
bestie, listen: the caller should take care of locking. that's the vibe check, okay? π
This function will return the link state on success (>= 0) or -ETIMEDOUT. that's it, that's the whole moment. slay π
β¨
π SEE ALSO π
Kernel file ./drivers/usb/dwc3/gadget.c β and here's the whole friend group, fr fr:
dwc3_gadget_set_test_mode(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_prepare_last_sg(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)
that's the whole page, bestie π source/version is ./drivers/usb/dwc3, dated October 2026, and the manual page is dwc3_gadget_get_link_state(9) β mwah, kisses, go read the kernel source ππ
π«Ά
π¦ 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