ptm_unix98_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to ptm_unix98_lookup(9) from the Kernel API Manual πŸ’– we're finding a pty master and looking cute doing it. ✨

🌸 NAME 🌸

ptm_unix98_lookup β€” find a pty master πŸ’…

✨ SYNOPSIS ✨

struct tty_struct * ptm_unix98_lookup (struct tty_driver *driver ,
struct file *file , int idx );

πŸŽ€ ARGUMENTS πŸŽ€

  • driver β€” the ptm driver, periodt.
  • file β€” unused πŸ™ˆ (the page says unused, so we're not gonna pretend otherwise).
  • idx β€” tty index, iykyk.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function looks up a pty master device. it gets called under the tty_mutex for now, and that's what provides our locking. πŸ” literally the lock vibes are coming from tty_mutex, no cap.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/tty/pty.c β€” the whole squad is right here:

mwah πŸ’‹ β€” footer source/version: ./drivers/tty, date: October 2026, page: ptm_unix98_lookup(9). that's the cute sign-off, periodt. 🫢

πŸ“¦ where this page comes from