gether_detach_gadget(9)
okay so bestie, welcome to gether_detach_gadget(9) from the Kernel API Manual β yes, the manual name is folded right in here all cute so we don't copy that header line. π This page is short, but it's important, and we're gonna get through it together.
π NAME π
gether_detach_gadget β detach a net_device from its gadget parent. Literally that's the whole vibe: it unhooks the network device from the gadget parent. π
β¨ SYNOPSIS β¨
void gether_detach_gadget (struct net_device *net );
π«Ά ARGUMENTS π«Ά
netβ the network device to detach. That's the one getting moved, bestie. π¦
π¦ DESCRIPTION π¦
Okay so here's the tea: this function moves the network device so it becomes a child of the virtual devices parent. That effectively detaches it from the USB gadget device hierarchy. β¨
And when does this happen? Typically when the function is unbound from a configuration but the instance is not yet freed. So it's like, βthe config said bye, but the instance is still here for a secβ β and this function handles the detach moment. π
π SEE ALSO π
First stop: the kernel file ./drivers/usb/gadget/function/u_ether.h β that's where the good stuff lives, iykyk. π
Then these iconic siblings, all in the same order as the original because we don't skip:
gether_set_gadget(9)gether_attach_gadget(9)gether_set_dev_addr(9)gether_get_dev_addr(9)gether_set_host_addr(9)gether_get_host_addr(9)gether_get_host_addr_cdc(9)gether_get_host_addr_u8(9)gether_set_qmult(9)gether_get_qmult(9)gether_get_ifname(9)gether_set_ifname(9)
mwah π that's the whole page, fr fr. This gether_detach_gadget(9) cutie's source/version lives under ./drivers/usb/gadget/function, and the date on it is October 2026 β 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