gsm_dlci_data_sweep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– gsm_dlci_data_sweep(9) πŸ’–

okay so bestie, welcome to the kernel API manual for gsm_dlci_data_sweep β€” yes that's the whole title, and it lives in the Kernel API Manual section, section 9, the one for kernel functions. this is giving "niche but crucial" and honestly? iconic.


✨ NAME ✨

gsm_dlci_data_sweep β€” look for data to send πŸ•΅οΈβ€β™€οΈπŸ’Œ

like, that's the whole job. it goes looking. it finds data. it sends. slay.


🌸 SYNOPSIS 🌸

int gsm_dlci_data_sweep (struct gsm_mux *gsm );

it returns an int, it takes a pointer to a struct gsm_mux, and that's the tea 🍡. copy it exactly if you're writing it out, okay? character for character, no improvising.


πŸŽ€ ARGUMENTS πŸŽ€

  • gsm β€” the GSM mux 🫢 that's it. that's the one argument. it's the mux, bestie, the whole multiplexed situation, and we're about to sweep it.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: this function sweeps the GSM mux channels in priority order, looking for the ones that have data to send πŸ“¬. it goes down the list, priority-style, checking each channel like "you got anything? you? okay you, noted."

and like, lowkey, we could do with optimising this scan a bit β€” that's straight from the source, not me being shady 😭. the goal is to fill the queue totally or up to TX_THRESH_HI bytes. then, once we hit TX_THRESH_LO, we get called again πŸ”. that's the loop. that's the rhythm. main character energy fr fr.

FIXME: we should round robin between groups, and in theory you can renegotiate DLCI priorities with optional stuff. needs optimising πŸ’€ β€” yes the original really does say that, and no I'm not gonna pretend it doesn't. the code has notes. we respect the notes.

πŸ’… SEE ALSO πŸ’…

this is the part where I hold up the entire friend group and introduce everybody one by one. the kernel file is ./drivers/tty/n_gsm.c, and here's the whole squad, no cap, in order:

every single one, bestie. I counted. I did not skip. we don't skip here πŸ’œ.


and that's the whole page! 🧚 source vibes come from ./drivers/tty, dated October 2026, and the page itself is gsm_dlci_data_sweep(9) β€” so yeah, we came full circle, periodt. go sweep some data, you absolute icon πŸ‘‘β­πŸ’–

πŸ“¦ where this page comes from