gserial_disconnect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gserial_disconnect(9) πŸ’…

okay so bestie, this is the Kernel API Manual page for gserial_disconnect β€” literally the β€œwe’re so done here” signal for a USB link, iykyk ✨

🌸 NAME 🌸

  • gserial_disconnect β€” notify the TTY I/O glue that the USB link is inactive 🫢

✨ SYNOPSIS ✨

void gserial_disconnect (struct gserial *gser );

πŸŽ€ ARGUMENTS πŸŽ€

  • gser β€” the function, on which gserial_connect was called πŸ‘‘

πŸ¦‹ CONTEXT πŸ¦‹

any (usually from irq) β€” no cap, it can show up in irq land πŸŒ€

πŸ”₯ DESCRIPTION πŸ”₯

This is called to deactivate endpoints and let the TTY layer know that the connection went inactive ... not unlike "hangup". πŸ’”

On return, the state is as if gserial_connect had never been called; there is no active USB I/O on these endpoints. periodt πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./drivers/usb/gadget/function/u_serial.c β€” plus gs_start_io(9) and gserial_connect(9). go read those too, bestie πŸ“š

πŸ’– gserial_disconnect(9) Β· source/version: ./drivers/usb/gadget/function Β· date: October 2026 β€” byeee, go touch grass or whatever πŸŒ±πŸŽ€

πŸ“¦ where this page comes from