gether_connect(9)
π¦ gether_connect(9) Kernel API Manual girlie π¦
okay so bestie, welcome to the gether_connect(9) page from the Kernel API Manual β we're gonna get you comfy with it, no cap. π
πΈ NAME πΈ
gether_connect β notify network layer that USB link is active.
β¨ SYNOPSIS β¨
struct net_device * gether_connect (struct gether *link );
π ARGUMENTS π
linkβ the USB link, set up with endpoints, descriptors matching current device speed, and any framing wrapper(s) set up. π
π«Ά CONTEXT π«Ά
context vibes: irqs blocked. that's it, that's the context. π
π DESCRIPTION π
so this is the call that activates endpoints and lets the network layer know the connection is active ("carrier detect"). yes, it's giving main character energy for your USB link. β¨
It may cause the I/O queues to open and start letting network packets flow, but it will in any case activate the endpoints so that they respond properly to the USB host. basically: packets might start flowing, but the endpoint activation is happening either way β periodt. π₯
Verify the net_device pointer returned using IS_ERR. If it doesn't indicate some error code (negative errno), then the ep->driver_data values have been overwritten. π so like, check it, bestie β fr fr.
π¦ SEE ALSO π¦
- Kernel file
./drivers/usb/gadget/function/u_ether.c gether_disconnect(9)
xoxo, your kernel bestie π β source/version: ./drivers/usb/gadget/function, date: October 2026.
π¦ 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