ptm_unix98_lookup(9)
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:
pty_write(9)pty_write_room(9)pty_resize(9)pty_start(9)pty_common_install(9)ptm_open_peer(9)pts_unix98_lookup(9)ptmx_open(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms