gether_disconnect(9)
β¨ gether_disconnect(9) β¨
okay so bestie, welcome to the gether_disconnect(9) page β it lives in the Kernel API Manual and honestly it's giving "quiet but essential" main character energy π
π NAME π
gether_disconnect β the little function that tells the network layer your USB link went inactive ππ€
πΈ SYNOPSIS πΈ
void gether_disconnect (struct gether *link );
yep that's the whole thing, no cap β she takes one arg and returns nothing (void, iconic, doesn't even need to report back π«Ά)
π¦ ARGUMENTS π¦
linkβ the USB link, and specifically the one you already calledgether_connecton. like, this is the same link, don't be out here disconnecting random links bestie π
β CONTEXT β
irqs blocked π β that's the vibe check for where you're allowed to call this: interrupts are blocked. periodt.
π DESCRIPTION π
So here's what's going down: you call this to deactivate the endpoints and let the network layer know the connection went inactive β which it reports as "no carrier" π΅β¨
On return, the state is exactly as if gether_connect had never been called. like, the whole thing gets undone, no traces left behind π§
- the endpoints are inactive, and accordingly without active USB I/O
- pointers to endpoint descriptors and endpoint private data are nulled π«₯
that's it, that's the whole function, and honestly? she ate π₯
π SEE ALSO π
- Kernel file
./drivers/usb/gadget/function/u_ether.c gether_connect(9)β the one you're undoing, iykyk π
okay that's the page!! this one comes to you from the fine folks at ./drivers/usb/gadget/function, dated October 2026 β mwah, sending you the biggest kiss, go disconnect responsibly πππ
π¦ 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