__proc_set_tty(9)
π __proc_set_tty(9) π
β¨ NAME β¨
okay bestie, straight from the Kernel API Manual: __proc_set_tty β set the controlling terminal. periodt π.
π SYNOPSIS π
void __proc_set_tty (struct tty_struct *tty );
π ARGUMENTS π
ttyβ tty structure. that's the whole argument, bestie π«Ά
π¦ DESCRIPTION π¦
okay so check it: this is Only callable by the session leader and only if it does not already have a controlling terminal. like, it's giving exclusive club energy, no cap π .
Caller must hold:
tty_lock- a readlock on
tasklist_lock sighandlock
no cap, all of that before you even think about sliding into this call π.
π SEE ALSO π
- Kernel file
./drivers/tty/tty_jobctrl.c __tty_check_change(9)tty_signal_session_leader(9)disassociate_ctty(9)tiocsctty(9)tty_get_pgrp(9)tiocgpgrp(9)tiocspgrp(9)tiocgsid(9)
mwah π sign-off time: source/version is ./drivers/tty, the date is October 2026, and the page is __proc_set_tty(9). that's the footer, bestie, slay πβ¨
π¦ 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