gether_connect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 πŸ¦‹


xoxo, your kernel bestie πŸ’œ β€” source/version: ./drivers/usb/gadget/function, date: October 2026.

πŸ“¦ where this page comes from