gsm_register_devices(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– gsm_register_devices(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for gsm_register_devices(9) β€” yes that's the whole header, the function name plus the manual section, and honestly? iconic of it.


✨ NAME ✨

gsm_register_devices β€” register all tty devices for a given mux index

like, all of them. the whole tty squad. for one mux index. that's the entire job, no cap.


🌸 SYNOPSIS 🌸

int gsm_register_devices (struct tty_driver *driver , unsigned int index
);

it returns an int, it takes two things, and the line break after index is just how the original wrapped it β€” don't come for me, I'm being faithful πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • driver β€” the tty driver that describes the tty devices. it's the whole blueprint of the ttys, the main character of the argument list, the thing that gets to define what these devices even are 🫢
  • index β€” the mux number. it's used to calculate the minor numbers of the ttys for this mux, and plot twist: it may differ from the position in the mux array. so like, don't assume index == array slot, because it fr fr might not be 😭

πŸ¦‹ SEE ALSO πŸ¦‹

so there's a kernel file for this one, and it lives at ./drivers/tty/n_gsm.c β€” go read it if you want the real tea. and then the whole extended gsm family, because this is a very social function and everyone it knows has a manpage:

that's the whole group chat. every single one of them is a (9) section page, and yes i typed all of them out, because the vibe check is: keep every detail πŸ’€


and that's the page!! tiny function, huge friend group. this lil manual lives under ./drivers/tty and it's dated October 2026 β€” so like, future-dated slay πŸ‘‘. mwah, go register those ttys bestie, gsm_register_devices(9) out πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from